sumsumsum
asked on
Back Ground Color
I have created some child frame in my program. But I haven't add any DocTemplate to the application.
I found I cannot change the BackGround Color of both the MainFrame and all the CHild Frame.
How can I change the BackGround Colour of each frame?
Thanks
I found I cannot change the BackGround Color of both the MainFrame and all the CHild Frame.
How can I change the BackGround Colour of each frame?
Thanks
ASKER
I have try this but I found the colour paint into the status bar also.....
And when I move the child frame within the mainframe.....
the background just don't update......
And when I move the child frame within the mainframe.....
the background just don't update......
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ups
child frame moving doesn;t update mainframe's background because it is not a MainFrame;s background - what you see is the MDI client window. You need to manage somehow its WM_ERASEBACKGROUND
Client Window pointer is stored in CMDIFrameWnd's member variable m_pClientWnd
child frame moving doesn;t update mainframe's background because it is not a MainFrame;s background - what you see is the MDI client window. You need to manage somehow its WM_ERASEBACKGROUND
Client Window pointer is stored in CMDIFrameWnd's member variable m_pClientWnd
ASKER
I got it works now.... Thanks
..-=ViKtOr=-..