Click here to Skip to main content
15,918,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can't make CEdit::SetTabStops(int, LPINT) work Pin
John R. Shaw19-Jan-07 16:52
John R. Shaw19-Jan-07 16:52 
GeneralRe: Can't make CEdit::SetTabStops(int, LPINT) work Pin
Bill Brocklebank20-Jan-07 15:57
Bill Brocklebank20-Jan-07 15:57 
QuestionRe: Can't make CEdit::SetTabStops(int, LPINT) work Pin
David Crow22-Jan-07 3:20
David Crow22-Jan-07 3:20 
AnswerRe: Can't make CEdit::SetTabStops(int, LPINT) work Pin
John R. Shaw28-Jan-07 7:47
John R. Shaw28-Jan-07 7:47 
QuestionTransparent checkbox text? Pin
madmax000119-Jan-07 5:47
madmax000119-Jan-07 5:47 
AnswerRe: Transparent checkbox text? Pin
Mark Salsbery19-Jan-07 6:53
Mark Salsbery19-Jan-07 6:53 
GeneralRe: Transparent checkbox text? Pin
madmax000120-Jan-07 9:10
madmax000120-Jan-07 9:10 
GeneralRe: Transparent checkbox text? Pin
Mark Salsbery20-Jan-07 10:26
Mark Salsbery20-Jan-07 10:26 
Yeah... most, if not all, of the standard controls use opaque background on their text.

You can draw it yourself using something like DrawText(). Obtain the checkbox rect in
OnInitDialog() and set the controls text to an empty string (you could get the text first so you
have the text string). In OnPaint(), call the base class OnPaint() then get a DC for the window
and select a pen of the text color into it, set its background mode to transparent, and use
DrawText() to render the string.

The Microsoft recommended method is owner draw.

Mark

AnswerRe: Transparent checkbox text? Pin
Ralf Lohmueller20-Jan-07 16:38
Ralf Lohmueller20-Jan-07 16:38 
GeneralRe: Transparent checkbox text? Pin
madmax000122-Jan-07 8:27
madmax000122-Jan-07 8:27 
QuestionNetUserGetInfo returns 1008 (GetLastError) Pin
gbabu1719-Jan-07 5:41
gbabu1719-Jan-07 5:41 
QuestionRe: NetUserGetInfo returns 1008 (GetLastError) Pin
David Crow19-Jan-07 6:13
David Crow19-Jan-07 6:13 
AnswerRe: NetUserGetInfo returns 1008 (GetLastError) Pin
gbabu1719-Jan-07 7:36
gbabu1719-Jan-07 7:36 
QuestionRe: NetUserGetInfo returns 1008 (GetLastError) Pin
David Crow19-Jan-07 7:41
David Crow19-Jan-07 7:41 
AnswerRe: NetUserGetInfo returns 1008 (GetLastError) Pin
gbabu1719-Jan-07 19:54
gbabu1719-Jan-07 19:54 
QuestionInitializeCriticalSection throws ... something ? Pin
Mr.Brainley19-Jan-07 5:31
Mr.Brainley19-Jan-07 5:31 
AnswerRe: InitializeCriticalSection throws ... something ? Pin
David Crow19-Jan-07 5:59
David Crow19-Jan-07 5:59 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
Mr.Brainley19-Jan-07 6:28
Mr.Brainley19-Jan-07 6:28 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
David Crow19-Jan-07 6:49
David Crow19-Jan-07 6:49 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
led mike19-Jan-07 7:08
led mike19-Jan-07 7:08 
GeneralRe: InitializeCriticalSection throws ... something ? Pin
David Crow19-Jan-07 7:32
David Crow19-Jan-07 7:32 
AnswerRe: InitializeCriticalSection throws ... something ? Pin
Mark Salsbery19-Jan-07 7:16
Mark Salsbery19-Jan-07 7:16 
Questionsend a short message from an application to a mobile phone Pin
nahitan19-Jan-07 5:22
nahitan19-Jan-07 5:22 
AnswerRe: send a short message from an application to a mobile phone Pin
David Crow19-Jan-07 5:51
David Crow19-Jan-07 5:51 
AnswerRe: send a short message from an application to a mobile phone Pin
Kiran Pinjala19-Jan-07 22:17
Kiran Pinjala19-Jan-07 22:17 

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.