Hello, me again
I have a toolbar TBBUTON and a lot of style that could be applied to it. Unfortunately only a few of them work (TBSTYLE_BUTTON, TBSTYLE_SEP and a few more). When I try to use styles like TBSTYLE_FLAT or TBSTYLE_TRANSPARENT the complier says that the constant 'was not declared in this scope'.
What library am I missing? Do I have to initialize some function?
Thank you for your answers
it seems like TBSTYLE_FLAT or TBSTYLE_TRANSPARENT is enabled depending on _WIN32_IE. I have Windows 7 on my computer, with IE9. I don't understand what happens.
If you don't explicitly #define _WIN32_IE, then it is automatically #defined to the highest version of IE that was available when the SDK was packaged. This means that if you are using the SDK 7.1 (Windows 7), _WIN32_IE is 0x0800, Internet Explorer 8.
Since it is highly unlikely that you are using an SDK so old that _WIN32_IE is less than 0x0300, the most probable cause is you are not #including the right header just as modoran stated in the first place. See http://msdn.microsoft.com/en-us/library/aa383745(VS.85).aspx to understand how to use the Windows header files.
if you use Mingw then you must define manually _WIN32_IE and _WINVER, I think by default you can write programs for windows 95 with that. Trying to use windows 7.1 SDK WIth mingw gives me an error 'sal.h' not found, but the file exists on my system ...
That's why I prefer to use VS for windows programming ...