Click here to Skip to main content
15,924,482 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: getting at the icon info Pin
fup15-Jun-01 10:18
fup15-Jun-01 10:18 
GeneralRe: getting at the icon info Pin
Michael Dunn16-Jun-01 10:01
sitebuilderMichael Dunn16-Jun-01 10:01 
QuestionWindow in front of all other windows? Pin
Rickard Andersson2015-Jun-01 4:49
Rickard Andersson2015-Jun-01 4:49 
AnswerRe: Window in front of all other windows? Pin
Carlos Antollini15-Jun-01 5:04
Carlos Antollini15-Jun-01 5:04 
GeneralProtocol tracer: high performance output Pin
EiSl15-Jun-01 4:25
EiSl15-Jun-01 4:25 
GeneralRe: Protocol tracer: high performance output Pin
Tomasz Sowinski15-Jun-01 4:42
Tomasz Sowinski15-Jun-01 4:42 
Generalsettextcolor Pin
15-Jun-01 4:21
suss15-Jun-01 4:21 
GeneralRe: settextcolor Pin
Tomasz Sowinski15-Jun-01 4:29
Tomasz Sowinski15-Jun-01 4:29 
If you want to have captions with specific color, you'll need to use owner-drawn controls. The way you're trying to achieve this effect is totally wrong now - the device context obtained from GetDC isn't used by WM_PAINT handler for checkboxes. Additionally, you have a major GDI resource leak - you're not releasing the context.

Since you apparently have 18 checkboxes, I'd use CListCtrl with LVS_EX_CHECKBOXES extended style. Changing item text color in CListCtrl is easier - CListCtrl::SetTextColor does that.


Tomasz Sowinski -- http://www.shooltz.com.pl
GeneralConverting RC scripts Pin
15-Jun-01 4:13
suss15-Jun-01 4:13 
Generalerror C1088: Cannot flush compiler intermediate file Pin
hearties15-Jun-01 4:07
hearties15-Jun-01 4:07 
GeneralRe: error C1088: Cannot flush compiler intermediate file Pin
Tomasz Sowinski15-Jun-01 4:13
Tomasz Sowinski15-Jun-01 4:13 
GeneralTabCtrl in a TabCtrl... Pin
15-Jun-01 4:05
suss15-Jun-01 4:05 
GeneralWhen Homepage is Reloaded , the Back Button is disabled (Caching Internet Urls) Pin
Maria Jothi15-Jun-01 3:15
Maria Jothi15-Jun-01 3:15 
GeneralPlease help me! Pin
15-Jun-01 2:07
suss15-Jun-01 2:07 
GeneralURGENT! - several very interesting questions Pin
Deian15-Jun-01 1:04
Deian15-Jun-01 1:04 
GeneralRe: URGENT! - several very interesting questions Pin
markkuk15-Jun-01 1:36
markkuk15-Jun-01 1:36 
GeneralRe: URGENT! - several very interesting questions Pin
Deian15-Jun-01 1:48
Deian15-Jun-01 1:48 
Generaldelete Pin
14-Jun-01 23:49
suss14-Jun-01 23:49 
GeneralRe: delete Pin
markkuk15-Jun-01 0:15
markkuk15-Jun-01 0:15 
GeneralRe: delete Pin
MikeG15-Jun-01 2:40
MikeG15-Jun-01 2:40 
GeneralAm I missing something ? Pin
Christian Graus15-Jun-01 12:38
protectorChristian Graus15-Jun-01 12:38 
GeneralDisplaying data in a dialog box Pin
Andrew Torrance14-Jun-01 23:47
Andrew Torrance14-Jun-01 23:47 
GeneralRe: Displaying data in a dialog box Pin
#realJSOP15-Jun-01 1:02
professional#realJSOP15-Jun-01 1:02 
GeneralVisual C++ IDE Pin
14-Jun-01 21:54
suss14-Jun-01 21:54 
GeneralMDAC Version Pin
ernst.maurer14-Jun-01 20:04
ernst.maurer14-Jun-01 20:04 

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.