Click here to Skip to main content
14,303,797 members

C / C++ / MFC

 
AnswerRe: Choosing my next Programming Language Pin
Richard MacCutchan21-Jan-19 4:57
protectorRichard MacCutchan21-Jan-19 4:57 
AnswerRe: Choosing my next Programming Language Pin
Joe Woodbury21-Jan-19 6:57
professionalJoe Woodbury21-Jan-19 6:57 
AnswerRe: Choosing my next Programming Language Pin
Stefan_Lang21-Jan-19 22:03
memberStefan_Lang21-Jan-19 22:03 
GeneralRe: Choosing my next Programming Language Pin
Richard MacCutchan21-Jan-19 22:41
protectorRichard MacCutchan21-Jan-19 22:41 
AnswerRe: Choosing my next Programming Language Pin
Member 1412742230-Jan-19 4:36
memberMember 1412742230-Jan-19 4:36 
QuestionOPC DA3 Pin
D.Manivelan20-Jan-19 22:21
memberD.Manivelan20-Jan-19 22:21 
AnswerRe: OPC DA3 Pin
Richard MacCutchan20-Jan-19 22:56
protectorRichard MacCutchan20-Jan-19 22:56 
QuestionAdd checkbox in second column in dynamically created ListCtrl Pin
Anu_Bala20-Jan-19 18:19
memberAnu_Bala20-Jan-19 18:19 
I have included CLIstCtrl in VIe wcalss in OnCreate(). I added headers details in OnCreate(). I want to add check box in Second column on control. If i add extended style LVS_CHECKBOXES, it adds checkbox to first column. But i want that for second column, how can i do that?

m_ctLstCtrl.Create(WS_CHILD | WS_VISIBLE | LVS_REPORT ,listRect, this, IDC_TRENDLISTCTRL);

	m_ctLstCtrl.SetExtendedStyle(m_ctLstCtrl.GetExtendedStyle() | LVS_EX_GRIDLINES|	 LVS_EX_FULLROWSELECT| 	LVS_EX_ONECLICKACTIVATE );
	
		
	m_ctLstCtrl.InsertColumn(0,_T(""),LVCFMT_RIGHT,20);
	m_ctLstCtrl.InsertColumn(1,_T("Visible"),LVCFMT_LEFT,50);  //checkbox under this header
	m_ctLstCtrl.InsertColumn(2,_T("Status"),LVCFMT_LEFT,50);
	m_ctLstCtrl.InsertColumn(3,_T("Trace color"),LVCFMT_LEFT,50);
	m_ctLstCtrl.InsertColumn(4,_T("Object"),LVCFMT_RIGHT,100);
        m_ctLstCtrl.InsertColumn(5,_T("Object"),LVCFMT_RIGHT,100);
	m_ctLstCtrl.InsertColumn(6,_T("Object Desc"),LVCFMT_RIGHT,100);



In OnTimer() im adding data to this Listctrl as

TagListctrl.SetRedraw( FALSE );
		TagListctrl.DeleteItem(iTagPos);
		index = TagListctrl.InsertItem(iTagPos,indexno);
	         //for 'Status' and 'Tracecolor'- fil color using OnCUstonDrawList()
		TagListctrl.SetItemText(iTagPos,4,"Object");
                TagListctrl.SetItemText(iTagPos,5,sName);
		TagListctrl.SetItemText(iTagPos,6,sDesc);
		TagListctrl.SetRedraw( TRUE );

Anu

AnswerRe: Add checkbox in second column in dynamically created ListCtrl Pin
Victor Nijegorodov20-Jan-19 20:45
memberVictor Nijegorodov20-Jan-19 20:45 
AnswerRe: Add checkbox in second column in dynamically created ListCtrl Pin
Richard MacCutchan20-Jan-19 21:24
protectorRichard MacCutchan20-Jan-19 21:24 
QuestionHow to use Pin
Member 1412420320-Jan-19 15:46
memberMember 1412420320-Jan-19 15:46 
QuestionUsing hex in an array and "scanning" for it fails. Pin
Vaclav_20-Jan-19 14:51
memberVaclav_20-Jan-19 14:51 
AnswerRe: Using hex in an array and "scanning" for it fails. Pin
Peter_in_278020-Jan-19 15:27
professionalPeter_in_278020-Jan-19 15:27 
GeneralRe: Using hex in an array and "scanning" for it fails. SOLVED Pin
Vaclav_20-Jan-19 16:57
memberVaclav_20-Jan-19 16:57 
GeneralRe: Using hex in an array and "scanning" for it fails. SOLVED Pin
CPallini20-Jan-19 20:32
mveCPallini20-Jan-19 20:32 
GeneralRe: Using hex in an array and "scanning" for it fails. SOLVED Pin
Vaclav_21-Jan-19 6:42
memberVaclav_21-Jan-19 6:42 
QuestionComplex multidimensional array in C++ Pin
Vaclav_19-Jan-19 18:27
memberVaclav_19-Jan-19 18:27 
AnswerRe: Complex multidimensional array in C++ Pin
Richard MacCutchan19-Jan-19 21:34
protectorRichard MacCutchan19-Jan-19 21:34 
GeneralRe: Complex multidimensional array in C++ Pin
Daniel Pfeffer19-Jan-19 21:48
professionalDaniel Pfeffer19-Jan-19 21:48 
GeneralRe: Complex multidimensional array in C++ Pin
Richard MacCutchan19-Jan-19 22:14
protectorRichard MacCutchan19-Jan-19 22:14 
GeneralRe: Complex multidimensional array in C++ Pin
Daniel Pfeffer19-Jan-19 22:17
professionalDaniel Pfeffer19-Jan-19 22:17 
GeneralRe: Complex multidimensional array in C++ Pin
Vaclav_20-Jan-19 4:39
memberVaclav_20-Jan-19 4:39 
GeneralRe: Complex multidimensional array in C++ Pin
Richard MacCutchan20-Jan-19 5:06
protectorRichard MacCutchan20-Jan-19 5:06 
GeneralRe: Complex multidimensional array in C++ Pin
Vaclav_20-Jan-19 7:15
memberVaclav_20-Jan-19 7:15 
GeneralRe: Complex multidimensional array in C++ Pin
k505420-Jan-19 8:47
memberk505420-Jan-19 8:47 

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.