open a view from a dialog button 
Author Message
 open a view from a dialog button

Hi all,
i need to open a view, and attach it to mainframe, from a
modal dialog.
i have try whit this :
void Dlg_7_2_Search_A::OnBviewmatrix()
{
   CWinApp::OnFileNew();
Quote:
}

but it don't function because OnFileNew is a protected
member of WinApp.
does anyone have suggestion?
thanks in advance


Sun, 11 Sep 2005 11:42:54 GMT  
 open a view from a dialog button

Quote:
>void Dlg_7_2_Search_A::OnBviewmatrix()
>{
>   CWinApp::OnFileNew();
>}
>but it don't function because OnFileNew is a protected
>member of WinApp.

You could use SendMessage WM_COMMAND ID_FILE_NEW to send the message
to the main frame window.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq



Sun, 11 Sep 2005 20:38:10 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. use a dialog button to open a doc/view menu (In tree view)

2. File Open Dialog - Open button Enable&Disable

3. File Open Dialog - Open button Enable&Disable

4. File Open Dialog - Open button Enable&disable

5. Use a dialog box to open a doc/view menu (in tree view)

6. How do I close a view with a button, but leave the document open

7. How to display a Help button in a Open or Save As common dialog box

8. file open dialog when clicking on button

9. How to open a new document/view from inside a dialog

10. Customize standard file open dialog list view control

11. Notifications from the list view control in File Open dialog

12. Doc/View displayed when button is pressed on dialog

 

 
Powered by phpBB® Forum Software