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!

help with CDialog

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi,
i call a dialog from onFileConnect function, which
is in my CView based class.
in the dialog function onOK, which i predefine
how to access the document or view object,
// for sample to call an VMyView->MyConnect();
10x for the help
 
try this in your dialog

#include "MainFrm.h"
#include "YourDoc.h"

CMainFrame* mf = (CMainFrame*) AfxGetMainWnd();
CYourDoc* m_pDoc = (CYourDoc*) mf->GetActiveDocument();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top