I've got a problem with using SetWindowLongPtr. I tried using this code, but it doesn't seem to work:
LONG toolWindowExStyle = WS_EX_TOOLWINDOW;
SetWindowLongPtr(hwnd, GWL_EXSTYLE, (LONG_PTR) &toolWindowExStyle);
However, this works perfectly:
I'd really appreciate it if someone could point out the mistake.
SetWindowLong(hwnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
PS: BTW, I'm using Windows XP, Microsoft Visual Studio 2005 and have used "#undef UNICODE" and "#undef _UNICODE" on top of the source code.