Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using CheckListBox

Posted on 1997-07-22
1
Medium Priority
?
301 Views
Last Modified: 2013-11-20
How can I add CheckListBox to dialog, which is created with Dialog Editor ?
0
Comment
Question by:arip
1 Comment
 
LVL 1

Accepted Solution

by:
belov earned 300 total points
ID: 1302751
You should place ownerdraw listbox in
resource, add CCheckListBox object
in your dialog class, and call
CCheckListBox::SubclassDlgItem(id, this)
in CYourDialog::InitDialog() method.

MFC implementation of CCheckListBox
provides DrawItem which draws check boxes
in listbox lines. You will have you override it
if you need more functionality if default
MFC implementation does.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

782 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