new common controls

Hi,
I was wondering if anyone could help me out with the 'values' for the new common controls masks.  Specifically the Date and Time picker.
I've recently tried to include it in a project but the compiler keeps complaining.

I load the new comctl32 library, get the function address for InitCommonControlsEx but then I have no values to pass to it.
InitCommonControlsEx takes a INITCOMMONCONTROLSEX structure as an argument but I don't know where this thing is defined so I created one myself.
The second value of the structure needs a flag specifying which control to initialize (ICC_DATE_CLASSES) but I don't know where this is defined either or what its value is
(I went through the comctl32.dll with dumpbin trying to find anything to help but only found functions, bmps, string tables; no kind of message value definition table.)

Is there anywhere I can get these values to use (a header or something) like
DATETIMEPICK_CLASS
ICC_DATE_CLASSES
DTS_LONGDATEFORMAT
DTS_SHORTDATEFORMAT
DTN_DROPDOWN
DTN_CLOSEUP
etc, etc

or does anyone know how I might include the new Date Time common control in my VC++4.0 project?

Thanks
bod_1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
chensuConnect With a Mentor Commented:
Download the latest Platform SDK at http://www.microsoft.com/msdn/sdk/platform.htm. It contains all the header files and import libraries.
0
 
bod_1Author Commented:
I got the SDK.
I don't have a clue whats going on with the linker/compiler now.  I #include "commctl32.h" in my project.  That header has the INITCOMMONCONTROLSEX structure defined but when I try and declare one, the compiler doesn't know what it is.
I tried just replacing the older commctl32.h file in my INCLUDE directory with the new one and the compiler still doesn't have a clue.

Around the definition of the structure (in commctl32) is a
#if (_MS_IE_VER <= 0x0300)
which is the only thing that I can think of.  Maybe it's hiding that section from the compiler?

At least I have the numbers I need from the header file.
Maybe this SDK thing won't work with VC4 since in the help files they keep emphasizing that it hasn't been tested with prior versions.
Anyway I'm gonna go tinker with the mask values, maybe I won't need the header or the library.

0
 
bod_1Author Commented:
I figured out what was wrong I think.
For some reason I didn't have a PATH set up for MSDEV in my autoexec.bat file.  
I needed a reboot.

0
 
chensuCommented:
Besides setting the PATH environment variable, you may do it from the IDE. Select the menu Tools/Options.../Directories (this is for Visual C++ 5.0, 4.0 might be different). Add the Include path and Lib path before any existing directories.
0
 
bod_1Author Commented:
thanks Chensu
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.