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!

whats OnInitialUpdate??

Status
Not open for further replies.

Toe

Programmer
Oct 26, 2001
71
GB
I'm still new to this game and am frantically slogging my way through a book by some 'Jon Bates' and 'Tim Tomkins' chaps.

In a particular bit on using bitmap resourse ins says (and I quote).....

"...Now add the following line of code to the OnInitialUpdate function"

now, I don't know if I'm going a little blind, or just getting fed up, but I can't find such a function in existance already to modify. (perhaps I should mention that It tells you to do this after starting a new project as 'dialog based' from the MFC wizard).

now I noitice that the CWnd class (from which CDialog is derived)contains such a method - so does the book really mean "create a virtual function function OnInitialUpdate"??

Thanks,

andy.
 
If You work with Visual C++, the best way is:
1. Create a Doc/View based application with MFC-Assistent (not Dialog based!), for example MyTest
2. For the class CMyTestView start the Classes-Assistent (in menu View), and You will see in the list of functions the OnInitialUpdate() - add it and edit it.

Best regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top