Click here to Skip to main content
15,896,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: LNK1107 Pin
Stuart Dootson25-Aug-09 21:08
professionalStuart Dootson25-Aug-09 21:08 
GeneralRe: LNK1107 Pin
MozhdehQeraati25-Aug-09 21:32
MozhdehQeraati25-Aug-09 21:32 
GeneralRe: LNK1107 Pin
Stuart Dootson25-Aug-09 22:08
professionalStuart Dootson25-Aug-09 22:08 
QuestionOnSize [modified] Pin
zhenek9125-Aug-09 17:06
zhenek9125-Aug-09 17:06 
AnswerRe: OnSize Pin
Code-o-mat25-Aug-09 20:28
Code-o-mat25-Aug-09 20:28 
AnswerRe: OnSize Pin
Cedric Moonen25-Aug-09 20:32
Cedric Moonen25-Aug-09 20:32 
GeneralRe: OnSize [modified] Pin
zhenek9125-Aug-09 20:39
zhenek9125-Aug-09 20:39 
QuestionAdding Checkboxes to a list control in every column Pin
Member 470944425-Aug-09 13:00
Member 470944425-Aug-09 13:00 
Hi,

I read the article about "Adding Checkboxes to a list control" and it was really helpful.
But what I want to do is to add a checkbox in every column and every row. And I want to be able to read and set the checking.

Is there any way to do it?

At the moment my code looks like this:

listCtrl.SetExtendedStyle(listCtrl.GetStyle()|LVS_EX_CHECKBOXES);<br />
	CString str;<br />
	str.Format("Col0");<br />
	listCtrl.InsertColumn(0, str, LVCFMT_LEFT, 100);<br />
	str.Format("Col1");<br />
	listCtrl.InsertColumn(1, str, LVCFMT_LEFT, 100);<br />
	str.Format("Col2");<br />
	listCtrl.InsertColumn(2, str, LVCFMT_LEFT, 100);<br />
<br />
	int nItem;<br />
	<br />
	nItem = listCtrl.InsertItem(0, "Row0");<br />
	str.Format("Col1");<br />
	listCtrl.SetItemText(nItem, 1, str);<br />
<br />
	nItem = listCtrl.InsertItem(0, "Row1");<br />
	str.Format("Col2");<br />
	listCtrl.SetItemText(nItem, 2, str);


Thanks for every help,

Moritz
AnswerRe: Adding Checkboxes to a list control in every column Pin
Code-o-mat25-Aug-09 20:34
Code-o-mat25-Aug-09 20:34 
AnswerRe: Adding Checkboxes to a list control in every column Pin
David Crow26-Aug-09 3:09
David Crow26-Aug-09 3:09 
GeneralRe: Adding Checkboxes to a list control in every column Pin
Member 470944426-Aug-09 4:03
Member 470944426-Aug-09 4:03 
QuestionRe: Adding Checkboxes to a list control in every column Pin
David Crow26-Aug-09 4:09
David Crow26-Aug-09 4:09 
AnswerRe: Adding Checkboxes to a list control in every column Pin
Member 470944426-Aug-09 4:14
Member 470944426-Aug-09 4:14 
GeneralRe: Adding Checkboxes to a list control in every column Pin
David Crow26-Aug-09 4:17
David Crow26-Aug-09 4:17 
GeneralRe: Adding Checkboxes to a list control in every column Pin
Member 470944427-Aug-09 4:32
Member 470944427-Aug-09 4:32 
GeneralRe: Adding Checkboxes to a list control in every column Pin
David Crow27-Aug-09 4:43
David Crow27-Aug-09 4:43 
Questionvisual c++ MFC reading access data file Pin
Merlin Vilhauer25-Aug-09 12:20
Merlin Vilhauer25-Aug-09 12:20 
AnswerRe: visual c++ MFC reading access data file Pin
Adam Roderick J25-Aug-09 18:09
Adam Roderick J25-Aug-09 18:09 
QuestionNeed a guideline of way to start my new challenge Pin
ayeosq25-Aug-09 5:54
ayeosq25-Aug-09 5:54 
AnswerRe: Need a guideline of way to start my new challenge Pin
David Crow25-Aug-09 7:42
David Crow25-Aug-09 7:42 
AnswerRe: Need a guideline of way to start my new challenge Pin
Hristo-Bojilov25-Aug-09 8:04
Hristo-Bojilov25-Aug-09 8:04 
QuestionConnect SQl server database using MFC Pin
Game-point25-Aug-09 4:21
Game-point25-Aug-09 4:21 
AnswerRe: Connect SQl server database using MFC Pin
Hristo-Bojilov25-Aug-09 7:43
Hristo-Bojilov25-Aug-09 7:43 
AnswerRe: Connect SQl server database using MFC Pin
David Crow25-Aug-09 7:44
David Crow25-Aug-09 7:44 
QuestionI'm trying to understand but it returns a linker error LNK2019 four times Pin
gordon305625-Aug-09 4:10
gordon305625-Aug-09 4:10 

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.