Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get a https file Pin
alex.barylski14-Jan-04 22:49
alex.barylski14-Jan-04 22:49 
GeneralFocus problem Pin
kliviu14-Jan-04 21:31
kliviu14-Jan-04 21:31 
GeneralRe: Focus problem Pin
alex.barylski14-Jan-04 21:49
alex.barylski14-Jan-04 21:49 
GeneralRe: Focus problem Pin
Prakash Nadar14-Jan-04 23:14
Prakash Nadar14-Jan-04 23:14 
GeneralCListBox with Checkboxes Pin
Cedric Moonen14-Jan-04 21:28
Cedric Moonen14-Jan-04 21:28 
GeneralRe: CListBox with Checkboxes Pin
kliviu14-Jan-04 21:39
kliviu14-Jan-04 21:39 
GeneralRe: CListBox with Checkboxes Pin
Cedric Moonen14-Jan-04 21:51
Cedric Moonen14-Jan-04 21:51 
GeneralRe: CListBox with Checkboxes Pin
Antti Keskinen14-Jan-04 21:47
Antti Keskinen14-Jan-04 21:47 
A CListBox is a list of string items.

That having said, if you want to have check box buttons instead of string items, then the best way would be to derive a new class from the CListBox and override the DrawItem member function. This function is safe to use: by selecting a certain type of return value, you can tell Windows what type of drawing you did. For example, if draw it completely yourself, then windows doesn't need to draw it anymore. If you don't want to draw a particular cell, you can let Windows do it.

Here is a CodeProject link to help you get started: Michael Dunn's article[^]

-Antti Keskinen


----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: CListBox with Checkboxes Pin
alex.barylski14-Jan-04 21:51
alex.barylski14-Jan-04 21:51 
GeneralRe: CListBox with Checkboxes Pin
Michael P Butler15-Jan-04 2:30
Michael P Butler15-Jan-04 2:30 
Questionhelp me! how will i handle user actions? Pin
Atilla Selem14-Jan-04 21:23
Atilla Selem14-Jan-04 21:23 
AnswerRe: help me! how will i handle user actions? Pin
Antti Keskinen14-Jan-04 21:36
Antti Keskinen14-Jan-04 21:36 
QuestionWhere does VS 6.0 stores the path of a file ? Pin
Jerome Conus14-Jan-04 21:01
Jerome Conus14-Jan-04 21:01 
AnswerRe: Where does VS 6.0 stores the path of a file ? Pin
567890123415-Jan-04 2:53
567890123415-Jan-04 2:53 
GeneralReally Dumb (easy) Question Pin
Roger Wright14-Jan-04 20:28
professionalRoger Wright14-Jan-04 20:28 
GeneralRe: Really Dumb (easy) Question Pin
StHubi14-Jan-04 20:54
StHubi14-Jan-04 20:54 
GeneralRe: Really Dumb (easy) Question Pin
Cyberizen14-Jan-04 20:54
Cyberizen14-Jan-04 20:54 
GeneralRe: Really Dumb (easy) Question Pin
lobanovski14-Jan-04 20:55
lobanovski14-Jan-04 20:55 
GeneralRe: Really Dumb (easy) Question Pin
alex.barylski14-Jan-04 20:57
alex.barylski14-Jan-04 20:57 
GeneralRe: Really Dumb (easy) Question Pin
Roger Wright14-Jan-04 21:28
professionalRoger Wright14-Jan-04 21:28 
GeneralRe: Really Dumb (easy) Question Pin
Antti Keskinen14-Jan-04 22:07
Antti Keskinen14-Jan-04 22:07 
GeneralRe: Really Dumb (easy) Question Pin
Roger Wright15-Jan-04 4:30
professionalRoger Wright15-Jan-04 4:30 
GeneralRe: Really Dumb (easy) Question Pin
alex.barylski14-Jan-04 22:46
alex.barylski14-Jan-04 22:46 
GeneralRe: Really Dumb (easy) Question Pin
[James Pullicino]15-Jan-04 1:35
[James Pullicino]15-Jan-04 1:35 
GeneralRe: Really Dumb (easy) Question Pin
Roger Wright15-Jan-04 4:32
professionalRoger Wright15-Jan-04 4:32 

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.