On Fri, Feb 15, 2013 at 7:26 PM, Art Heimsoth <artstore@artheimsoth.com> wrote:

> #include <windows.h>
> #include <winuser.h>
> #include <commctrl.h>

I had #include <richedit.h> and not the #include <winuser.h> but
when I added the winuser.h it did not make any difference.  I still
get the undefined error.  In looking at the includes, the #define for
that attribute is defined in Commctrl.h and has a #if around it of
    #if (_WIN32_IE >= 0x500)
so that tells me that my Win32_IE is not >= 0x500 - do you know
how/where that value is specified or what it represents?  I am runing
32 bit XP with IE 8.0.

You can define it yourself.   Just add this:

#define _WIN32_IE       0x0600

ahead of the includes

#include <windows.h>
#include <winuser.h>
#include <commctrl.h>
 
> I'd try VC++ 2010, it should work.

Yes, it works just fine.. but until I find out why the WIN32_IE is
not satisfying the #if statement, I will continue to maintain the
.rc manually.

The defines are meant for you to add.   This is what I have for the ooDialog source code:

#define NTDDI_VERSION   NTDDI_LONGHORN
#define _WIN32_WINNT    0x0600
#define _WIN32_IE       _WIN32_IE_IE70
#define WINVER          0x0600

 --
Mark Miesfeld