Accessing Main Frame
Posted on 2003-11-03
In my program...user preferences are loaded at start up. They are stored in the CApp part of my program because it is an MDI and that seems to make the most sense. Now...when the user opens a document...I want the program to check to see if preferences have been created...and if not...to launch the proper dialog for the user automatically. The normal way this is achieved is when the user clicks on a menu item under File called Options, the dialog opens. The handler for that menu item is in the main frame.
From the document...how can I programatically get the MainFrames OnFileOptions() function to call so that the dialog automatically comes up for the user is preferences have not been set.