473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CListCtrl and _WIN32_WINNT

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/de...ws_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

Nov 17 '05 #1
0 2249

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Joseph Smith | last post by:
Well I just started playing with VC++ yesterday, so keep it simple if you can. thx. Anyway, I'm having problems with a CListCtrl in report view. The first column seems to display fine, but the...
2
by: Chandrakanth | last post by:
How to make the selection in CListCtrl to appear in different color?
2
by: Herbert VON GRÜNENWALD | last post by:
Hi everyone ! I would like to set an ListViewItem at a special position, into a ListView. There is Bounds, but it's a propertie, that can be only get ! (i could to that in MFC with...
0
by: Rajko | last post by:
Here is something I find unusual. I implemented Drag and Drop to CListCtrl. First I created my own class myCListCtrl from CListCtrl. I implemented OnMouseMove and OnLButtonUp message handlers...
0
by: Ryan Albarelli | last post by:
Here's one I've spent the last 6 hours trying to figure out... I have a CListCtrl derived class. The first time I click an item in the list to select it, I see a lot of multimedia dll's being...
9
by: Lloyd Dupont | last post by:
In my code I would like to use the constant (define in WinGdi.h) CLEARTYPE_QUALITY But that doesn't work!! (it's for CreateFont(...)) A quick look at the header reveal that: == WinGdi.h...
1
by: Mike Smith | last post by:
All of the development that our project is doing is done for Windows 2000 or greater. All of the Visual Studio Wizards for C++ default the _WIN32_WINNT to Windows NT (0x0400). Is there a way to...
1
by: rag84dec | last post by:
Hi, I have many check boxes in a list control.My problem is to uncheck the check box if there is a check box already checked.How can i do??..I tried doing the below but it checks the first check box...
1
by: ggkk | last post by:
How do you prevent a user from resizing the column width of a clistctrl (report view)?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.