954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

OnInitUpdate

I have built a SDI project in Visual C++ called HelloSDI. I used a book I bought
to learn about Windows applications. The project compiles 0 errors and 0 warnings.
The project has a simple dialog box added to it. When I run the program up pops a window that is blank.
The dialog is not there. On further searching I guess I have to add a override the OnInitialUpdate()
method of the CView class with this code
ChelloDlg HelloDlg;
HelloDlg.DoModal(); to make the dialog pop up at initialization.

My problem is I don’t know where the OnInitialUpdate code is put into my project. Some say you can use a menu
Handler to add the code into, but I cant find away to do that either.
My book is unclear……. Can you help me. Jim

JimJake
Newbie Poster
1 post since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

hmm, isn't that showModal() ?

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

You can go into mesage handlers and add a function for WM_INITIALUPDATE. If you click on this, it will probably show that the OnInitialUpdate fxn is there but not shown in ClassWizard yet.
If you prefer you can add a menu item that calls DoModal for your dialog.

steveh
Newbie Poster
15 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You