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

MFC: Run dialog minimized

Status
Not open for further replies.

ascht

Programmer
Sep 22, 2000
43
CH
MFC: How can I startup a dialog minimized? The object type is CDialog.
[sig][/sig]
 
A Window can be opened minimized by modifying window style by or-ing it with WS_MINIMIZE. This should be done in the override of CWnd::OnCreate.
[sig][/sig]
 
Hi manish
I'm sorry, it didn't work
Here what i've written.

int CTimeOnPcDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
lpCreateStruct->style |= WS_OVERLAPPED;
lpCreateStruct->style |= WS_MINIMIZE;
CDialog::OnCreate(lpCreateStruct);
}
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top