how to change view in a sdi frame window
-
I need to show more than two views in a sdi frame window. My code like this:
RECT rc; GetClientRect(&rc); m_hWndClient = m_view.Create(m_hWnd,rc); m_view.ShowWindow(SW_SHOW); m_view.SetFocus(); m_view2.ShowWindow(SW_HIDE);
It can show m_view2,but not like default view. How can I switch views correctly?? opening view with wild mind -
I need to show more than two views in a sdi frame window. My code like this:
RECT rc; GetClientRect(&rc); m_hWndClient = m_view.Create(m_hWnd,rc); m_view.ShowWindow(SW_SHOW); m_view.SetFocus(); m_view2.ShowWindow(SW_HIDE);
It can show m_view2,but not like default view. How can I switch views correctly?? opening view with wild mind -
I need to show more than two views in a sdi frame window. My code like this:
RECT rc; GetClientRect(&rc); m_hWndClient = m_view.Create(m_hWnd,rc); m_view.ShowWindow(SW_SHOW); m_view.SetFocus(); m_view2.ShowWindow(SW_HIDE);
It can show m_view2,but not like default view. How can I switch views correctly?? opening view with wild mindTo add to what TFrancis said, after setting
m_hWndClient
, callUpdateLayout()
to make sure the view is sized correctly to fit the client area of the frame. --Mike-- Personal stuff:: Ericahist Updated Feb 6! | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ "That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas." -- Buffy