Common Controls Crash

Hi,

I have a non MFC application where I am trying to use an UP/DOWN (Spin) control in a dialog. It works fine under Win 2000/XP but crashes on Win 95/98/Me when creating the dialog.

I am calling InitCommonControls, added version checking, etc... but it seems I cannot use the up/down control or use checkboxes in the list view component.

Any one has any ideas on what I am missing?

Thanks,

Francisco
[445 byte] By [fmoraes] at [2007-11-17 11:50:07]
# 1 Re: Common Controls Crash
MSDN says InitCommonControls is obsolete and use this function with the Ex. I got this from MSDN

InitCommonControlsEx Function

------------------------

Registers specific common control classes from the common control dynamic-link library (DLL).

Syntax

BOOL InitCommonControlsEx( LPINITCOMMONCONTROLSEX lpInitCtrls
);
Parameters

lpInitCtrls
Pointer to an INITCOMMONCONTROLSEX structure that contains information specifying which control classes will be registered.
Return Value

Returns TRUE if successful, or FALSE otherwise.

Remarks

Important The effect of each call to InitCommonControlsEx is cumulative. For example, if InitCommonControlsEx is called with the ICC_UPDOWN_CLASS flag, then is later called with the ICC_HOTKEY_CLASS flag, the result is that both the up-down and hot key common control classes are registered and available to the application.

Function Information

Minimum DLL Version comctl32.dll version 4.70 or later
Header commctrl.h
Import library comctl32.lib
Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 3.0, Windows 98, Windows 95 with Internet Explorer 3.0

------------------------

2002 Microsoft Corporation. All
JohnDavidHanna at 2007-11-10 8:06:56 >