Changing Window Attributes
When you register a window class or create a window, you get to specify window attributes, however once your window is running, you may wish to change the window's attributes to do something like removing the taskbar button for a window on minimizing (used in the 'Minimize to tray' feature of applications). This can be done using SetWindowLongPtr (SetWindowLong can be used too, but it will not work on 64-bit versions of Windows).
I've read some time back in an MSDN article that the window has to be hidden/disabled (I can't remember which... my guess would be hidden) before the attribute is changed. I'll try it and post the code for it sometime soon.
I've read some time back in an MSDN article that the window has to be hidden/disabled (I can't remember which... my guess would be hidden) before the attribute is changed. I'll try it and post the code for it sometime soon.
0 Comments:
Post a Comment
<< Home