开发者

Making a "panel" in WINapi

开发者 https://www.devze.com 2023-03-21 21:52 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消