Hi
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?
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?
Create a client area. Maybe create a main window, but don't show it.
WS_POPUP is correct. Nothing more is required. Check your window pos parameters on CreateWindow().
japheth
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
try WS_POPUP or WS_BORDER.
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.
Regards,
hutch@pbq.com.au
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.
Regards,
hutch@pbq.com.au
Use ShowWindow, or add WS_VISIBLE to the CreateWindowEx call. You can replace WS_VISIBLE with WS_MINIMIZE or WS_MAXIMIZE.