Solved

ListBox

Posted on 2000-02-18
4
268 Views
Last Modified: 2013-11-20
I am beginner in MFC. How can I place to my form ListBox with checks?

0
Comment
Question by:Elery
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
mahno earned 50 total points
ID: 2534910
U must place to Ur form List control and add variable(right mouse button click->Class Wizard->Member variables->Add variable)

m_List
control
CListBox

Then in .h file change code:

  CListBox m_List;

to

  CCheckListBox m_List;

Enjoy

brgs,
  mahno
0
 
LVL 1

Expert Comment

by:ScottyDawg
ID: 2534918
As far as I know, there is no listbox style that will add checkboxes.

However, there if you use a ListCtrl you can add checkboxes to it with LVS_EX_CHECKBOXES style.

To add the style call SetExtendedStyle() on the listctrl.
0
 
LVL 1

Expert Comment

by:ScottyDawg
ID: 2534928
ahh, CCheckListBox, that'll be what you want then :)
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 2534971
In resource editor you'll have to set 'owner draw fixed' and 'Has Strings' styles...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tripleUp challenge 7 74
FizzBuzz challenge 9 76
"Black Box" Testing of Control System Software 2 25
Bartender label printing - switch on and off graphics 3 14
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now