Click here to Skip to main content
15,904,287 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat are the security risks by embedding the Python in C++ application, if any. Pin
oleg6322-Jan-19 9:11
professionaloleg6322-Jan-19 9:11 
AnswerRe: What are the security risks by embedding the Python in C++ application, if any. Pin
Joe Woodbury22-Jan-19 10:40
professionalJoe Woodbury22-Jan-19 10:40 
QuestionWhat extensions for Visual Studio can you recommend? Pin
Froddo22-Jan-19 5:53
Froddo22-Jan-19 5:53 
AnswerRe: What extensions for Visual Studio can you recommend? Pin
Victor Nijegorodov22-Jan-19 10:13
Victor Nijegorodov22-Jan-19 10:13 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo23-Jan-19 3:40
Froddo23-Jan-19 3:40 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Member 1412742230-Jan-19 4:27
Member 1412742230-Jan-19 4:27 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo31-Jan-19 1:25
Froddo31-Jan-19 1:25 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Member 141274221-Feb-19 6:27
Member 141274221-Feb-19 6:27 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo12-Feb-19 6:48
Froddo12-Feb-19 6:48 
QuestionSetCheck() for checkbox in MFC GridControl 2.7 Pin
Anu_Bala21-Jan-19 18:16
Anu_Bala21-Jan-19 18:16 
AnswerRe: SetCheck() for checkbox in MFC GridControl 2.7 Pin
Richard MacCutchan21-Jan-19 22:43
mveRichard MacCutchan21-Jan-19 22:43 
Questioncourse distribution system project in algorithm source code? Pin
Member 1412522921-Jan-19 10:07
Member 1412522921-Jan-19 10:07 
GeneralRe: course distribution system project in algorithm source code? Pin
David Crow21-Jan-19 10:27
David Crow21-Jan-19 10:27 
GeneralRe: course distribution system project in algorithm source code? Pin
CPallini21-Jan-19 10:35
mveCPallini21-Jan-19 10:35 
GeneralRe: course distribution system project in algorithm source code? Pin
Joe Woodbury21-Jan-19 10:37
professionalJoe Woodbury21-Jan-19 10:37 
AnswerRe: course distribution system project in algorithm source code? Pin
Stefan_Lang21-Jan-19 21:16
Stefan_Lang21-Jan-19 21:16 
QuestionChoosing my next Programming Language Pin
HS_C_Student21-Jan-19 2:49
HS_C_Student21-Jan-19 2:49 
AnswerRe: Choosing my next Programming Language Pin
Richard MacCutchan21-Jan-19 4:57
mveRichard 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 PinPopular
Stefan_Lang21-Jan-19 22:03
Stefan_Lang21-Jan-19 22:03 
GeneralRe: Choosing my next Programming Language Pin
Richard MacCutchan21-Jan-19 22:41
mveRichard MacCutchan21-Jan-19 22:41 
AnswerRe: Choosing my next Programming Language Pin
Member 1412742230-Jan-19 4:36
Member 1412742230-Jan-19 4:36 
QuestionOPC DA3 Pin
D.Manivelan20-Jan-19 22:21
D.Manivelan20-Jan-19 22:21 
AnswerRe: OPC DA3 Pin
Richard MacCutchan20-Jan-19 22:56
mveRichard MacCutchan20-Jan-19 22:56 
QuestionAdd checkbox in second column in dynamically created ListCtrl Pin
Anu_Bala20-Jan-19 18:19
Anu_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

C++
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

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.