Click here to Skip to main content
16,010,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COM and Multithreading Pin
act_x21-Jan-03 11:12
act_x21-Jan-03 11:12 
GeneralRe: COM and Multithreading Pin
Stefan Pedersen21-Jan-03 11:03
Stefan Pedersen21-Jan-03 11:03 
GeneralQuestion about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 10:38
FrankRizzo21-Jan-03 10:38 
GeneralRe: Question about NEW throwing in MFC app Pin
Michael Dunn21-Jan-03 10:55
sitebuilderMichael Dunn21-Jan-03 10:55 
GeneralRe: Question about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 11:11
FrankRizzo21-Jan-03 11:11 
GeneralTransparent Group Box , huh?! Pin
brianwelsch21-Jan-03 10:11
brianwelsch21-Jan-03 10:11 
GeneralRe: Transparent Group Box , huh?! Pin
dazinith21-Jan-03 10:30
dazinith21-Jan-03 10:30 
GeneralRe: Transparent Group Box , huh?! Pin
Brit21-Jan-03 14:00
Brit21-Jan-03 14:00 
The "transparent" setting is a little counterintuitive. You can look up details about it in MSDN under "WS_EX_TRANSPARENT".

One description in MSDN says, WS_EX_TRANSPARENT Specifies that a window created with this style is to be transparent. That is, any windows that are beneath the window are not obscured by the window. A window created with this style receives WM_PAINT messages only after all sibling windows beneath it have been updated.

For example, if you have CStatic text written on a dialog, and it is NOT transparent, then the CStatic control will fill the control's rectangular window with a background color (usually gray) before writing the text. This has the effect of erasing anything that was drawn there previously. If "transparent" is specified, the CStatic control will not fill the control's rectangular region with gray before writing the text. (If I remember correctly - that's how it works.)

So, why is your group box showing up transparent? If it is a custom-designed control, then the developer might've forgotten to actually do the rectangular-area fill before drawing everything else. The dialog won't fill this rectangular region because "it's under the ownership of the group-box" and because it is non-transparent, it is not the dialog's responsibility to fill it.


------------------------------------------
"Isn't it funny how people say they'll never grow up to be their parents, then one day they look in the mirror and they're moving aircraft carriers into the Gulf region?" - The Onion
GeneralCatching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:04
The Lady of Shallots21-Jan-03 10:04 
GeneralRe: Catching maximize of an app Pin
AlexO21-Jan-03 10:14
AlexO21-Jan-03 10:14 
GeneralRe: Catching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:21
The Lady of Shallots21-Jan-03 10:21 
QuestionSimulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 9:54
dazinith21-Jan-03 9:54 
AnswerRe: Simulate a keypress, or go to the next field? Pin
Joaquín M López Muñoz21-Jan-03 9:55
Joaquín M López Muñoz21-Jan-03 9:55 
GeneralRe: Simulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 10:29
dazinith21-Jan-03 10:29 
Question"Not Responding" - how to prevent? Pin
ExtraLean21-Jan-03 9:43
ExtraLean21-Jan-03 9:43 
AnswerRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 9:50
protectorChristian Graus21-Jan-03 9:50 
GeneralRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 9:51
Joaquín M López Muñoz21-Jan-03 9:51 
GeneralRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 10:47
protectorChristian Graus21-Jan-03 10:47 
GeneralRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 11:03
Joaquín M López Muñoz21-Jan-03 11:03 
GeneralRe: "Not Responding" - how to prevent? Pin
Christian Graus21-Jan-03 13:03
protectorChristian Graus21-Jan-03 13:03 
AnswerRe: "Not Responding" - how to prevent? Pin
Joaquín M López Muñoz21-Jan-03 9:49
Joaquín M López Muñoz21-Jan-03 9:49 
AnswerRe: "Not Responding" - how to prevent? Pin
#realJSOP21-Jan-03 10:21
professional#realJSOP21-Jan-03 10:21 
GeneralModeless dialog and OK button and renaming yet.... Pin
ns21-Jan-03 9:41
ns21-Jan-03 9:41 
GeneralRe: Modeless dialog and OK button and renaming yet.... Pin
Joaquín M López Muñoz21-Jan-03 9:44
Joaquín M López Muñoz21-Jan-03 9:44 
GeneralRe: Modeless dialog and OK button and renaming yet.... Pin
ns21-Jan-03 10:07
ns21-Jan-03 10:07 

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.