Advertisement

Titlebar

Started by November 19, 2001 09:22 AM
5 comments, last by Erzengel 23 years, 3 months ago
This question does not relate to OpenGL but hopefully one of you will answer it anyway. I''m using VC++ 6 and want the main window to have no titlebar (the thingy with the icon, the Title of the window and the max, min and close buttons) .. i think i tried all possible window styles (third argument of CreateWindow()) but the window always had that titlebar. So my question is how do i get rid of that freaking titlebar? MfG, erzengel
If you're not paranoid, you're not paying attention!
There are more in CreateWindowEx()

Try (maybe) WS_EX_DLGMODALFRAME

"Creates a window that has a double border; the window can, optionally, be created with a title bar by specifying the WS_CAPTION style in the dwStyle parameter."
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
sorry .. it still dosent''t work. I tried now also tried all of the WS_EX_ styles but still there is always this titlebar. Ok .. it''s empty with no Icons, no text and no buttons but i would want it completly gone .. any other ideas?

THX,
Erzengel
If you're not paranoid, you're not paying attention!
have you tried putting a NULL as dwStyle while using WS_EX_* ?

If not, well, I''m out of ideas.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
yes i tried .. and it didn''t work as well. But i found another solution, i used a DialogBox instead of a window (i know that a DialogBox is just a special Window but hey if it works you won''t see complaining *g*) and heureka it worked ..

But thanks for the offered help.

CU,
Erzengel
If you're not paranoid, you're not paying attention!
Try a dwStyle = WS_POPUP, and a dwExStyle = WS_EX_DLGMODALFRAME. It worked for me.

WS_POPUP by itself will give you a window with no border, and no title bar.

J.W.
Advertisement
Yeah. Windows by default are borderless - so just don''t specify anything anywhere. (Then add the stuff you want)

This topic is closed to new replies.

Advertisement