V
Victor
Hi everybody!
VS.NET 2003 C++ MFC project for Windows XP
I would like to use a CListCtrl control in a dialog. So I have
#include'd "afxcmn.h" in my CMyDialog.h and declared a variable
CListCtrl list;
This compiles fine. But now I try to invoke a function list.SetView(0).
The compiler says : 'SetView' is not a member of the CListCtrl. I
inquired into the afxcmn.h and found that this function is only
available when _WIN32_WINNT >= 0x0501. Well, I went to my stdafx.h and
changed _WIN32_WINNT = 0x0501 and _WIN32_WINVER = 0x0501 according to
the recommendations from
http://msdn.microsoft.com/library/d...winprog/winprog/using_the_windows_headers.asp
The error I get now is :
C:\Programme\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxcmn3.inl(18): error C2065:
'CCM_SETWINDOWTHEME' : undeclared identifier
and some other the same type.
Where is a way out here?
Victor
VS.NET 2003 C++ MFC project for Windows XP
I would like to use a CListCtrl control in a dialog. So I have
#include'd "afxcmn.h" in my CMyDialog.h and declared a variable
CListCtrl list;
This compiles fine. But now I try to invoke a function list.SetView(0).
The compiler says : 'SetView' is not a member of the CListCtrl. I
inquired into the afxcmn.h and found that this function is only
available when _WIN32_WINNT >= 0x0501. Well, I went to my stdafx.h and
changed _WIN32_WINNT = 0x0501 and _WIN32_WINVER = 0x0501 according to
the recommendations from
http://msdn.microsoft.com/library/d...winprog/winprog/using_the_windows_headers.asp
The error I get now is :
C:\Programme\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxcmn3.inl(18): error C2065:
'CCM_SETWINDOWTHEME' : undeclared identifier
and some other the same type.
Where is a way out here?
Victor