Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!
I am using MS Visual Studio 2010 to build a MFC Multiple Document based application using visual studio style.

I want to add some checkboxes in output area. Anybody please guide me that how to add checkboxes there. In dialog based MFC application, we can easily do that via toolbox but I found no luck in my case.

Thanks

What I have tried:

I am using MS Visual Studio: I want to add checkboxes in this function,
oid COutputWnd::FillBuildWindow()
{
	m_wndOutputBuild.AddString(_T("Build output is being displayed here."));
	
}
Posted
Updated 8-Jun-17 20:55pm

MFC document based applications use CView derived classes to display documents. You will typically derive your own class from one of the Derived View Classes Available in MFC[^] or create your own one based on CView.

If you need a view with controls like check boxes, Form Views (MFC)[^] might be the best base classes.
 
Share this answer
 
Can you please show me an example via code snippets ?
like
CButton myButton;
	myButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_AUTOCHECKBOX, 
   CRect(10,10,100,30), &m_wndOutputBuild, 4);
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900