p.ribet
April 23rd, 2003, 06:36 AM
Hi all!
I'd like to create a window like the ones used for menus, contextual menus or combo box (while the list is open).
For this, I need some toplevel borderless window. I tried this:
new_window_handle = CreateWindow(CLASSNAME, WINNAME, WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, CW_USEDEFAULT, CW_USEDEFAULT, new_window_width, new_window_height, NULL, NULL, main_hInstance, NULL);
The problem are:
- this window appears in the taskbar,
- the main window is not the active window anymore (the "blue title bar" is back to gray color).
Then I tried this:
new_window_handle = CreateWindowEx(WS_EX_TOOLWINDOW, CLASSNAME, WINNAME, WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, new_window_x, new_window_y, new_window_width, new_window_height, NULL, NULL, main_hInstance, NULL);
This solved the first problem but not the second one.
Does anybody have any idea?
I read many docs but didn't find anything...
Where could I look for?
Thanks for any advice!
I'd like to create a window like the ones used for menus, contextual menus or combo box (while the list is open).
For this, I need some toplevel borderless window. I tried this:
new_window_handle = CreateWindow(CLASSNAME, WINNAME, WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, CW_USEDEFAULT, CW_USEDEFAULT, new_window_width, new_window_height, NULL, NULL, main_hInstance, NULL);
The problem are:
- this window appears in the taskbar,
- the main window is not the active window anymore (the "blue title bar" is back to gray color).
Then I tried this:
new_window_handle = CreateWindowEx(WS_EX_TOOLWINDOW, CLASSNAME, WINNAME, WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, new_window_x, new_window_y, new_window_width, new_window_height, NULL, NULL, main_hInstance, NULL);
This solved the first problem but not the second one.
Does anybody have any idea?
I read many docs but didn't find anything...
Where could I look for?
Thanks for any advice!