Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What port is GetPeerName returning? Pin
Alexander M.,28-Jul-05 9:29
Alexander M.,28-Jul-05 9:29 
GeneralRe: What port is GetPeerName returning? Pin
lihin0028-Jul-05 9:36
lihin0028-Jul-05 9:36 
Questionsndvol32? Pin
billiam90428-Jul-05 8:57
billiam90428-Jul-05 8:57 
AnswerRe: sndvol32? Pin
Alexander M.,28-Jul-05 9:06
Alexander M.,28-Jul-05 9:06 
GeneralRe: sndvol32? Pin
billiam90428-Jul-05 9:10
billiam90428-Jul-05 9:10 
GeneralRe: sndvol32? Pin
Alexander M.,28-Jul-05 9:14
Alexander M.,28-Jul-05 9:14 
Generaltimeout for while loop Pin
trigger9128-Jul-05 8:53
susstrigger9128-Jul-05 8:53 
GeneralRe: timeout for while loop Pin
Alexander M.,28-Jul-05 8:57
Alexander M.,28-Jul-05 8:57 
GeneralRe: timeout for while loop Pin
trigger9128-Jul-05 9:33
susstrigger9128-Jul-05 9:33 
GeneralRe: timeout for while loop Pin
Alexander M.,29-Jul-05 4:26
Alexander M.,29-Jul-05 4:26 
GeneralRe: timeout for while loop Pin
Peter Weyzen28-Jul-05 9:46
Peter Weyzen28-Jul-05 9:46 
GeneralRe: timeout for while loop Pin
Alexander M.,29-Jul-05 4:25
Alexander M.,29-Jul-05 4:25 
GeneralRe: timeout for while loop Pin
David Crow29-Jul-05 6:03
David Crow29-Jul-05 6:03 
GeneralRe: timeout for while loop Pin
nm_11429-Jul-05 14:16
nm_11429-Jul-05 14:16 
Generalread from comport problem Pin
quarry_0628-Jul-05 8:42
quarry_0628-Jul-05 8:42 
GeneralRe: read from comport problem Pin
Bob Stanneveld28-Jul-05 19:19
Bob Stanneveld28-Jul-05 19:19 
GeneralRe: read from comport problem Pin
quarry_0629-Jul-05 8:15
quarry_0629-Jul-05 8:15 
GeneralRe: read from comport problem Pin
Bob Stanneveld1-Aug-05 1:01
Bob Stanneveld1-Aug-05 1:01 
GeneralWeb Services from VC++ 6.0 Pin
carks28-Jul-05 8:21
carks28-Jul-05 8:21 
GeneralRe: Web Services from VC++ 6.0 Pin
fakefur28-Jul-05 10:05
fakefur28-Jul-05 10:05 
GeneralRe: Web Services from VC++ 6.0 Pin
Ravi Bhavnani28-Jul-05 10:16
professionalRavi Bhavnani28-Jul-05 10:16 
GeneralHelp me... Rich Edit Pin
Aqueel28-Jul-05 8:18
Aqueel28-Jul-05 8:18 
GeneralRe: Help me... Rich Edit Pin
John R. Shaw28-Jul-05 8:51
John R. Shaw28-Jul-05 8:51 
GeneralRe: Help me... Rich Edit Pin
David Crow28-Jul-05 9:49
David Crow28-Jul-05 9:49 
GeneralChild Dialog Background Color Pin
liehann28-Jul-05 8:12
liehann28-Jul-05 8:12 
Hi,

I have a class derived off CDialog that I use as a child dialog in a tab control.

The problem I have is that the background of the dialog is gray but the tab control's background is white (xp look).

How can I get the child dialog's background to be the same color as the tab control's background?

I would prefer not to have to change the tab control as I'm using a class from a library and I would like to have a general solution that applies not only to tab controls but any parent window.

I tried overriding OnEraseBkgnd and calling
HBRUSH hBrush = (HBRUSH) GetParent()->SendMessage(WM_CTLCOLORDLG, m_hWnd);
and using the returned hBrush to fill the dialog's client area but that threw exceptions.

I've also tried not erasing the background.

Any help would be appreicated.

Regards,

Liehann

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.