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!

calling a form from a window

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can i call a form from a window? I tried using Create function but i failed. I couldn't see any form called.
 
What does it mean a form? If it is a DialogBox, you cau use function like CreateDialog(....), or in MFC CDialog::DoModal(). If it is a Window, you can use the functions ShowWindow(....) or in MFC CWnd::DoModal. By the way, a form and a window in Win32API is the same thing.
 
A form is a dialog that is connected to database.
 
if you have a class for this form (for example CMyForm) you should only:
CMyForm oneform;
oneform.DoModal();
everywhere you want to call one CMyForm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top