it helps a lot. thanx
klphua
Posts
-
How to destroy and recreate a new view -
How to destroy and recreate a new viewLet's say I have a view, and I make some checking in CView::OnInitialUpdate() and found out it can't load some resources for some reason, so I decide to destroy the view and try to reopen the view. How to close the view and then recreate a new view, all happening inside OnInitialUpdate() ? (is it possible?) Thanx in advance...
-
How to make and MDI child window resizeable for a concrete sizeAnd here's some example... void ::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI) { // TODO: Add your message handler code here and/or call default if (m_bInit) // Make sure the view is initiated { lpMMI->ptMinTrackSize.x = ; lpMMI->ptMinTrackSize.y = ; } ::OnGetMinMaxInfo(lpMMI); }
-
BSTR --> CString ?sorry i forgot, that bstr is of type _bstr_t. u r rite, Chris.
-
BSTR --> CString ?donno whether this is the fastest or easiest, but I've been coding it like this: CString str = static_cast( bstr );