Click here to Skip to main content
15,900,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Control transparency Pin
damir_tk24-Nov-06 10:50
damir_tk24-Nov-06 10:50 
GeneralRe: Control transparency Pin
Mark Salsbery24-Nov-06 11:15
Mark Salsbery24-Nov-06 11:15 
GeneralRe: Control transparency Pin
Waldermort24-Nov-06 17:20
Waldermort24-Nov-06 17:20 
AnswerRe: Control transparency Pin
Michael Dunn24-Nov-06 10:55
sitebuilderMichael Dunn24-Nov-06 10:55 
GeneralRe: Control transparency Pin
damir_tk24-Nov-06 12:40
damir_tk24-Nov-06 12:40 
GeneralRe: Control transparency Pin
Mark Salsbery24-Nov-06 12:49
Mark Salsbery24-Nov-06 12:49 
GeneralRe: Control transparency Pin
damir_tk24-Nov-06 13:02
damir_tk24-Nov-06 13:02 
GeneralRe: Control transparency Pin
Mark Salsbery24-Nov-06 13:26
Mark Salsbery24-Nov-06 13:26 
Thanks for the link.

I looked at the code. I saw no "subclassing" going on besides what MFC already does for you.
It is an owner drawn control implemented by overriding WM_PAINT and drawing the entire control
instead of using the Windows ownerdraw interface.

My point in previous posts is that no matter what wrapper you are using, if the control is a
Windows control then aside from making an owner-drawn control, there's no way to magically
change the way the control draws itself. Unfortunately, Microsoft chose to not fully implement
transparency (via WS_EX_TRANSPARENT) in all controls and multi part controls like the group box
that require more than one background brush do not work well with the WM_CTLCOLOR messages.

I have no idea how ATL wraps a window, but if there's no way to intercept every message to the
window then it sounds like a pretty lame wrapper. Even the lowly MFC lets you do that Smile | :)


GeneralRe: Control transparency Pin
damir_tk24-Nov-06 13:51
damir_tk24-Nov-06 13:51 
QuestionBHO in IE7 [modified] Pin
Kharfax24-Nov-06 8:38
Kharfax24-Nov-06 8:38 
AnswerRe: BHO in IE7 Pin
Waldermort24-Nov-06 8:47
Waldermort24-Nov-06 8:47 
GeneralRe: BHO in IE7 Pin
Kharfax24-Nov-06 9:29
Kharfax24-Nov-06 9:29 
AnswerRe: BHO in IE7 Pin
Michael Dunn24-Nov-06 10:58
sitebuilderMichael Dunn24-Nov-06 10:58 
GeneralRe: BHO in IE7 Pin
Kharfax27-Nov-06 1:07
Kharfax27-Nov-06 1:07 
QuestionUrgent: Help Me!!! Pin
SoftDeveloper24-Nov-06 7:13
SoftDeveloper24-Nov-06 7:13 
AnswerRe: Urgent: Help Me!!! Pin
Mark Salsbery24-Nov-06 7:18
Mark Salsbery24-Nov-06 7:18 
GeneralRe: Urgent: Help Me!!! Pin
Waldermort24-Nov-06 7:48
Waldermort24-Nov-06 7:48 
GeneralRe: Urgent: Help Me!!! Pin
Mark Salsbery24-Nov-06 8:05
Mark Salsbery24-Nov-06 8:05 
GeneralRe: Urgent: Help Me!!! Pin
Paul Conrad26-Nov-06 18:56
professionalPaul Conrad26-Nov-06 18:56 
AnswerRe: Urgent: Help Me!!! Pin
Chris Meech24-Nov-06 8:30
Chris Meech24-Nov-06 8:30 
GeneralRe: Urgent: Help Me!!! Pin
Mark Salsbery24-Nov-06 8:49
Mark Salsbery24-Nov-06 8:49 
GeneralRe: Urgent: Help Me!!! Pin
Waldermort24-Nov-06 8:58
Waldermort24-Nov-06 8:58 
GeneralRe: Urgent: Help Me!!! Pin
Mark Salsbery24-Nov-06 10:11
Mark Salsbery24-Nov-06 10:11 
GeneralRe: Urgent: Help Me!!! Pin
Waldermort24-Nov-06 10:27
Waldermort24-Nov-06 10:27 
QuestionRe: Urgent: Help Me!!! Pin
CPallini24-Nov-06 8:50
mveCPallini24-Nov-06 8:50 

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.