11 August 2002: - Timer precision is now determined automatically
// Complete change in the way the popup is showing (thanks to this,now the popup can be always on top, it shows even while watching a movie)
// The popup doesn't steal the focus anymore (by replacing ShowWindow(SW_SHOW) by ShowWindow(SW_SHOWNOACTIVATE))
// Thanks to Daniel Lohmann, update in the way the taskbar pos is determined (more flexible now)
// 17 July 2002: - Another big Change in the method for determining the pos of the taskbar (using the SHAppBarMessage function)
// 16 July 2002: - Thanks to the help of Daniel Lohmann, the Show Function timings work perfectly now ;)
// 15 July 2002: - Change in the method for determining the pos of the taskbar
// (now handles the presence of quick launch or any other bar).
// Remove the Handlers for WM_CREATE and WM_DESTROY
// SetSkin is now called SetBitmap
// 14 July 2002: - Changed the GenerateRegion func by a new one (to correct a win98 bug)
I've used this class to implement
status popup windows in polular messanger.
Sometimes or on some versions of windows always,
it appears in the left top with damaged bitmap
instead right bottom. I don't know why.
It wasn't "always on top" and as author suggested
in comments you have to add WS_EX_TOPMOST to CreateEx
but it sleals focus :)
It wasn't recognizing winver at runtime and
here's my fix for that. add to "Create"
ov.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
if (ov.dwPlatformId == VER_PLATFORM_WIN32_NT)
#define TIMER_RESOLUTION 50 // about 10 ms for NT, 50 ms for Win9x
When i try to extract demo project .zip file. It gives error of bad CRC. Plz update this .zip file with correct one.And where is the demo project .dsp and .dsw files and why it does't open in VC++ environment.