CListCtrl groups on XP platform

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Compiler: VS2010 on Win7 PC.
Output: MFC Application which includes the Main EXE and a dozen DLLs.
Ive been careful to read the documentation and only use functions of the CListCtrl that dont say Vista only/onwards. From what I have read CListBox grouping should work on XP given the correct circumstances: http://www.codeguru.com/forum/archive/index.php/t-322907.html
Now my application has been working fine on every Win7 PC Ive tried it on but on the XP boxes (SP3) I load it up on the grouping is just not visible.
Things Ive tried:
<pre style="font-family:consolas <span style="color:green // Initialize customization managers:
<br/>
<span style="color:blue #if
1 <span style="color:green // SG-UK (24/01/2011)
<br/>
INITCOMMONCONTROLSEX InitCtrlEx;<br/>
InitCtrlEx.dwSize = <span style="color:blue sizeof
(INITCOMMONCONTROLSEX);<br/>
InitCtrlEx.dwICC = ICC_LISTVIEW_CLASSES;<br/>
BOOL bInitOK = InitCommonControlsEx(&InitCtrlEx);<br/>
ASSERT(bInitOK);<br/>
<span style="color:blue #else
<br/>
<span style="color:green //Under Comctl32.dll version 5.x, only Windows 95 classes (ICC_WIN95_CLASSES) can be registered through InitCommonControls. Programs which require additional common control classes must use the InitCommonControlsEx function.
<br/>
InitCommonControls();<br/>
<span style="color:blue #endif
<span style="color:green // SG-UK (24/01/2011)
<br/>
[/code]
<pre style="font-family:consolas <span style="color:blue #if
1 <span style="color:green // SG-UK (25/01/2011)
<br/>
<span style="color:blue #if
<span style="color:blue defined
_M_IX86<br/>
<span style="color:blue #pragma
<span style="color:blue comment
(linker,<span style="color:#a31515 "/manifestdependency:"type=win32 name=Microsoft.Windows.Common-Controls version=6.0.0.0 processorArchitecture=x86 publicKeyToken=6595b64144ccf1df language=*""
)<br/>
<span style="color:blue #elif
<span style="color:blue defined
_M_IA64<br/>
<span style="color:blue #pragma
<span style="color:blue comment
(linker,<span style="color:#a31515 "/manifestdependency:"type=win32 name=Microsoft.Windows.Common-Controls version=6.0.0.0 processorArchitecture=ia64 publicKeyToken=6595b64144ccf1df language=*""
)<br/>
<span style="color:blue #elif
<span style="color:blue defined
_M_X64<br/>
<span style="color:blue #pragma
<span style="color:blue comment
(linker,<span style="color:#a31515 "/manifestdependency:"type=win32 name=Microsoft.Windows.Common-Controls version=6.0.0.0 processorArchitecture=amd64 publicKeyToken=6595b64144ccf1df language=*""
)<br/>
<span style="color:blue #else
<br/>
<span style="color:blue #pragma
<span style="color:blue comment
(linker,<span style="color:#a31515 "/manifestdependency:"type=win32 name=Microsoft.Windows.Common-Controls version=6.0.0.0 processorArchitecture=* publicKeyToken=6595b64144ccf1df language=*""
)<br/>
<span style="color:blue #endif
<br/>
<span style="color:blue #endif
<span style="color:green // SG-UK (25/01/2011)
<br/>
[/code]
Ive also been checking the Version of ComCtrl32.dll using Depends.exe on my Win7 and XP box:
XP
Win7
File version 6.0.2900.6028 6.10.7600.16661<br/>
Product version 6.0.2900.6028 6.10.7600.16661<br/>
Image version 5.1 6.1
<br/>
Linker version 7.10 9.0<br/>
OS Version 5.1 6.1<br/>
Subsystem ver 4.10 6.1

Any help and direction will be greatly appreciated as my compiles can take >2 hours each time I try something new.


View the full article
 
Back
Top