Hide Caption of a Window

Jun 26, 2009 at 4:26pm
How can i hide the caption (or title bar) of a window? i need it to make 2D UI using just DirectX and COM and i'm stuck at hiding this bar. I searched on google but it's just for C#, VB or MFC (that i can't use).

Thanks!
Jun 26, 2009 at 5:25pm
The caption isn't present by default -- you need to specify the window style you want.

take a look at the styles you can choose from that you pass to CreateWindowEx. You want something like WM_POPUP, which creates a window with no borders or captions -- and not something like WM_OVERLAPPEDWINDOW which gives you the whole shebang.
Jun 26, 2009 at 5:27pm
oh yeah, now i've seen it too... thanks Disch

[edit]
By the way, it's WS not WM
Last edited on Jun 26, 2009 at 5:29pm
Jun 26, 2009 at 5:31pm
hah, yeah, whoops! XD Ah well, I'm rusty.
Topic archived. No new replies allowed.