Help with creating Always On Top hidden window
-
Hello, Could anyone please show me how to create an Always On Top window like ICQ or Task Manager except it is transparent? I want the window to be Topmost and no application being maximized can stay above it. I am creating my window like this, but it is not always on top. Please help, tell, or show me what to do, thank you. // Create the window (this doesn't work, I don't know why) // If I do a Alt-Tab, other windows being maximized can still go above it hwndHotkey = CreateWindowEx(WS_EX_TRANSPARENT | WS_EX_TOPMOST, szWindowNameHotkey, NULL, WS_POPUP, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), NULL, NULL, ghInstance, NULL); SetWindowPos(hwndHotkey, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); :)
-
Hello, Could anyone please show me how to create an Always On Top window like ICQ or Task Manager except it is transparent? I want the window to be Topmost and no application being maximized can stay above it. I am creating my window like this, but it is not always on top. Please help, tell, or show me what to do, thank you. // Create the window (this doesn't work, I don't know why) // If I do a Alt-Tab, other windows being maximized can still go above it hwndHotkey = CreateWindowEx(WS_EX_TRANSPARENT | WS_EX_TOPMOST, szWindowNameHotkey, NULL, WS_POPUP, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), NULL, NULL, ghInstance, NULL); SetWindowPos(hwndHotkey, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); :)
Try to write: SetWindowPos(&wndTopMost, ... ); When I use (for example) SetWindowPos(&wndTopMost,1,1,200,200,SWP_SHOWWINDOW ); my dialog window is always on top. Best regards, Vitaliy