I'm trying to get rid of the title bar on a popup window.
I read somewhere that to do this you have to remove the WS_CAPTION style. well I've done this and all I have is the WS_POPUP style but now I just have an icon on the task bar and the window dosen't show.
can anyone tell me what is the best way to show a window that dosen't have the title bar on it?
Posted on 2001-08-19 22:20:11 by Ralph
Create a client area. Maybe create a main window, but don't show it.
Posted on 2001-08-19 23:32:00 by eet_1024
WS_POPUP is correct. Nothing more is required. Check your window pos parameters on CreateWindow().

Posted on 2001-08-20 02:29:30 by japheth
if you' re interested, i made a keygen template without a real titlebar. maybe it can help you. you can check it at http://www.effervescence.com
Posted on 2001-08-20 05:56:19 by roy

If this does not work, put WS_OVERLAPPEDWINDOW in the call to make sure the window is being displayed at all. Make sure you have the code like follows,

invoke ShowWindow,hWnd,SW_SHOWNORMAL
invoke UpdateWindow,hWnd

after the CreateWindowEx call so that it gets displayed properly.


Posted on 2001-08-20 07:10:34 by hutch--
Use ShowWindow, or add WS_VISIBLE to the CreateWindowEx call. You can replace WS_VISIBLE with WS_MINIMIZE or WS_MAXIMIZE.
Posted on 2001-08-20 16:47:39 by tank