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

Please Help: Backgroundcolor / Windowsize

Status
Not open for further replies.

DoubleU

MIS
Aug 27, 2002
2
DE
(1)How can I fix the backgroundcolor of a dialogbox,
or where must I insert the following function:
---------------------------------------------------
BOOL CMyApp::InitInstance()
{
SetDialogBkColor(); // Set dialog background color to gray
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
}
---------------------------------------------------

(2)What must I do, that my dialogbox starts maximized?
 
"(1)How can I fix the backgroundcolor of a dialogbox":
inherite from CDialog and Override CYourDlg::OnPaint() and draw it yourself.

"(2)What must I do, that my dialogbox starts maximized?":

BOOL CMyApp::InitInstance()
{
//.....
//.....
CYourDlg dlg;

m_pMainWnd = &dlg;
dlg.Create(IDD_TOURDLG/*The dialog resource ID*/);
dlg.UpdateWindow();
dlg.ShowWindow(SW_MINIMIZE);

return TRUE; //Continue the app
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top