Environment: VC++ 6, Systems
A few days ago, I faced a problem regarding a minimize button for a window with the style WS_EX_TOOLWINDOW. Because there is no support for a minimize button with this style, I had to do it on my own. While working on the solution, I knew I would post the solution on CodeGuru; so, here it is.
This project was compiled on Visual C++ 6.0 and runs perfectly on WinXP Pro, but Visual Studio .NET 2003 is installed and used for the include files. If you find a way to work without Visual Studio .NET, please comment. Because my minimum OS is WinXP, I had to work with themes, but the basic code for an OS with no themes is there but has not been tested.
#include "uxtheme.h" #include "tmschema.h"
Search Directories (Modify if Necessary)
Include - C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include Lib - C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib