« November 2005 »
S M T W T F S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
You are not logged in. Log in

Programming Tips
Monday, 21 November 2005
Always on top dialogs and windows
Mood:  surprised
Topic: VC++
Ever wondered how to create an always on top dialog!

Here, take a look. :)

::SetWindowPos(m_hWnd /*Handle to the window*/, 
		HWND_TOPMOST /*Places the window at the top of the Z-Order*/, 
		0 /*New x*/, 
		0 /*New y*/, 
		0 /*New Width*/, 
		0 /*New Height*/, 
		SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE/*Flags*/
		);

Now you might be wondering how to remove this feature. Just replace HWND_TOPMOST with HWND_NOTOPMOST

Happy days ahead.

Posted by Nibu babu thomas at 2:08 PM
Updated: Monday, 21 November 2005 2:12 PM

View Latest Entries