Sign in to follow this  
Raeldor

Re-Initializing Views in MFC

Recommended Posts

Raeldor    254
Hi, I need to be able to re-initialize the views in my MFC application even though I am not creating a new document. What is the best way of doing this? Currently I have...
		// re-initialize views
		POSITION pos = GetFirstViewPosition();
		while (pos != NULL)
		{
			CView* pView = GetNextView(pos);
			pView->OnInitialUpdate();
		}


Is it safe to call OnInitialUpdate directly? Is there a better way to do this? Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this