Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetDialogBkColor Deprecated in VC7

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
Ok,

How do you set the background of a dialog box in vc7?
Apparently SetDialogBkColor (used in vc6) has been deprecated this time around.

Thanks,
Ron

/**************
Me: When will the project be finished?
Them: What project?
Me: The one you have been working on for the last 3 years!
Them: Ohh, we can't finish it?
Me: Why?
Them: We don't know how to program...
 
From the online help for CWinApp::SetDialogBkColor(), there is this explanation:

"To set the background color of the dialog box, you must handle WM_CTLCOLOR. This message changes the color of the specified dialog box only."

Hope that helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top