GLutz78

It seems just using WS_DLGFRAME does not work although it sounds like it should based on msdn. I just want a window, not fullscreen, and no title bar.

Is this possible


Re: Visual C++ General How can i CreateWindow with no TitleBar?

kirants

Remove WS_CAPTION



Re: Visual C++ General How can i CreateWindow with no TitleBar?

GLutz78

i removed everything - still see it.




Re: Visual C++ General How can i CreateWindow with no TitleBar?

kirants

Are you using resource editor for a dialog template If so, please paste the .rc file snippet for your dialog template

Or ,

Are you using CreateWindow / other APIs If so, please post code snippet you are using





Re: Visual C++ General How can i CreateWindow with no TitleBar?

crescens2k

If you are using the resource editor then you must get rid of title bar. Also you can't have maximise, minimise and other things which are normally present on the title bar enabled.

The styles you can't use are WS_CAPTION, WS_SYSMENU, WS_MAXIMIZEBOX and WS_MINIMIZEBOX. These generally override other styles too, so if you use one of these with a style which doesn't have a title bar then a title bar will be created.

For example, I recently had to create a child window with no title bar. The styles I used were WS_CHILD | WS_VISIBLE. It was meant to be a window which was just fixed in place along an edge to hold some data. The above styles actually created the window that I wanted.