943,965 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1726
  • C++ RSS
Dec 4th, 2004
0

OnInitUpdate

Expand Post »
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 can�t find away to do that either.
My book is unclear……. Can you help me. Jim
Reputation Points: 10
Solved Threads: 0
Newbie Poster
JimJake is offline Offline
1 posts
since Dec 2004
Dec 4th, 2004
0

Re: OnInitUpdate

hmm, isn't that showModal() ?
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Dec 6th, 2004
0

Re: OnInitUpdate

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
steveh is offline Offline
15 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: I cant correct these two errors
Next Thread in C++ Forum Timeline: Hello Everyone, I need Help with my C++ Code...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC