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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newby question:How do you set the Application background color?

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
Hello,

I need to set the background color of an activeX control I am making to white.

I've tried running SetDialogBkColor(RGB(255,255,255)) in the BOOL CMyApp::InitInstance() method but nothing happens. I'm sure there is a simple solution that I am missing.
 
I think you try to do that onb no window. CWinApp is no window, it is just the application.

Ion Filipski
1c.bmp
 
There is nothing special to understand. Let's try to say it again:
You try to set the background on a nonwindow object and/or while no windows are created.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top