does anyone know how to make a window always on top?
does anyone know how to make a window always on top?
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
Maybe check for WM_FOCUSCHANGED and counter with a BringWindowToTop(hwnd)? Not sure, though...
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Call SetWindowPos(), specifying HWND_TOPMOST as the second parameter.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Also, try ORing the WS_EX_TOPMOST style to the first param you pass to CreateWindowEx()
>>Also, try ORing the WS_EX_TOPMOST style to the first param you pass to CreateWindowEx()<<
I was going to suggest that until I read (msdn):So it seems that:WS_EX_TOPMOST Specifies that a window created with this style should be placed above all nontopmost windows and stay above them even when the window is deactivated. An application can use the SetWindowPos member function to add or remove this attribute.
>>Call SetWindowPos(), specifying HWND_TOPMOST as the second parameter.<<
Is probably the most complete/flexible answer.
thanks, that works
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials