Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProgram file asscociation Pin
varuna825-Feb-03 12:44
varuna825-Feb-03 12:44 
GeneralRe: Program file asscociation Pin
Mike Nordell5-Feb-03 21:03
Mike Nordell5-Feb-03 21:03 
GeneralRe: Program file asscociation Pin
varuna826-Feb-03 12:57
varuna826-Feb-03 12:57 
GeneralChat to hex Pin
varuna825-Feb-03 12:27
varuna825-Feb-03 12:27 
GeneralRe: Chat to hex Pin
Mike Nordell5-Feb-03 21:04
Mike Nordell5-Feb-03 21:04 
GeneralRe: Chat to hex Pin
Abbas_Riazi5-Feb-03 22:03
professionalAbbas_Riazi5-Feb-03 22:03 
QuestionDo you access a SQL server the same way you access a ACCESS DATABASE?? Pin
IrishSonic5-Feb-03 11:34
IrishSonic5-Feb-03 11:34 
AnswerRe: Do you access a SQL server the same way you access a ACCESS DATABASE?? Pin
nde_plume5-Feb-03 14:07
nde_plume5-Feb-03 14:07 
Generalneed help with odbc with paragraph of text.. Pin
trustno15-Feb-03 11:04
trustno15-Feb-03 11:04 
GeneralRe: need help with odbc with paragraph of text.. Pin
KarstenK6-Feb-03 0:11
mveKarstenK6-Feb-03 0:11 
General"Catastrophic Failure" in Visual Studio.NET Pin
Jonathan Gilligan5-Feb-03 10:14
Jonathan Gilligan5-Feb-03 10:14 
GeneralHelp with structure and createThread function call Pin
Pecan2045-Feb-03 9:52
Pecan2045-Feb-03 9:52 
GeneralRe: Help with structure and createThread function call Pin
Joaquín M López Muñoz5-Feb-03 10:35
Joaquín M López Muñoz5-Feb-03 10:35 
GeneralRe: Help with structure and createThread function call Pin
Pecan2045-Feb-03 14:24
Pecan2045-Feb-03 14:24 
GeneralLinking additional obj's Pin
JohnEddy5-Feb-03 9:12
JohnEddy5-Feb-03 9:12 
GeneralRe: Linking additional obj's Pin
Joaquín M López Muñoz5-Feb-03 9:19
Joaquín M López Muñoz5-Feb-03 9:19 
GeneralRe: Linking additional obj's Pin
AlexO5-Feb-03 9:20
AlexO5-Feb-03 9:20 
GeneralRe: Linking additional obj's Pin
JohnEddy5-Feb-03 9:40
JohnEddy5-Feb-03 9:40 
Generalccalendar or cmonthcalendar Pin
youssef5-Feb-03 8:48
youssef5-Feb-03 8:48 
GeneralA simple question about CListCtrl::InsertItem Pin
lucy5-Feb-03 8:21
lucy5-Feb-03 8:21 
GeneralRe: A simple question about CListCtrl::InsertItem Pin
lucy5-Feb-03 8:50
lucy5-Feb-03 8:50 
GeneralRe: A simple question about CListCtrl::InsertItem Pin
xxhimanshu5-Feb-03 19:07
xxhimanshu5-Feb-03 19:07 
Smile | :) hi,
this is what we do.. as
m_List.InsertColumn( // Ask Mfc to create/insert a column
0, // This is the rank/order of this
// particular item
"Name", // The caption we want for this header
LVCFMT_LEFT, // The relative position we want the
// items under this header to have
100); // The width we want for the items under
// this header
m_List.InsertColumn(1, "Profession", LVCFMT_CENTER, 80);
m_List.InsertColumn(2, "Fav. Sport", LVCFMT_LEFT, 100);
m_List.InsertColumn(3, "Hobby", LVCFMT_LEFT, 80);
and to add items..

provide some items to display under the headers:

int nItem; // This integer will be used to identify the
// header item we are dealing with.
// Give a name/caption to an item to display under the first header
nItem = m_List.InsertItem(0, "Sandra");
// Create a caption for the corresponding headers.
m_List.SetItemText(nItem, 1, "Singer");
m_List.SetItemText(nItem, 2, "HandBall");
m_List.SetItemText(nItem, 3, "Beach");

i hope so you get..why you were getting an error..
cheers



Himanshu
GeneralRe: A simple question about CListCtrl::InsertItem Pin
lucy6-Feb-03 2:32
lucy6-Feb-03 2:32 
GeneralRe: A simple question about CListCtrl::InsertItem Pin
Jean-Marc Molina3-Oct-03 0:26
Jean-Marc Molina3-Oct-03 0:26 
QuestionHow to transfer data in different views? Pin
hamchoy5-Feb-03 8:20
hamchoy5-Feb-03 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.