I need to make a Panel (borderless Window?) with WinAPI for wxWidgets since I need one with CS_OWNDC t开发者_开发知识库o always have the same DC.
What styles should I use?
I do not program winapi very often, so I beg you to help me out :-).
CreateWindow() / CreateWindowEx() with WS_CHILD would create a borderless/menubarless window (aka panel).
You'll have to register a custom window class (RegisterClass()
) for your custom window panel if you want an alternate class style than one that is already provided by the common controls ("static" for instance).
Are you sure you want to use the CS_OWNDC
class style? See the class styles to make sure you're not thinking of CS_CLASSDC
.
精彩评论