How to set the custome position of View in MainFrame?
"hawkgao" <hawkgao-/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
Hello folks,
In common, the view in a single document mainframe fulfills all the client area.
However, I need such view move down and draw something in the area over the
view. For that purpose, I set a new rectangle area at the Create() function call
of View class. Unfortunately, no effect. Then I add MoveWindow() under Create()
function call. Cannot work either. My code in CMainFrame::OnCreate() bellow,
LRESULT CMainFrame::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
...
RECT rc = { 100, 100, 500, 500 };
m_hWndClient = m_view.Create(m_hWnd, rc, NULL, WS_CHILD | WS_VISIBLE |
WS_HSCROLL | WS_VSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL);
m_view.MoveWindow(&rc);
...
}
Any idears?
Thanks,
-Xiang
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/