Re: How to set the custome position of View in MainFrame?

"hawkgao" <hawkgao-/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
I check out the implementation of CFrameWindowImpl<>. Your solution is much better.

--- In [email protected], Mojtaba Fathi <modjtabaf@...> wrote:
>
> 
> Hi
> I think it is better to reimplement UpdateLayout function and customize it for your needs.
> Moji
> 
> --- On Sun, 8/9/09, hawkgao <hawkgao@...> wrote:
> 
> From: hawkgao <hawkgao@...>
> Subject: [wtl] Re: How to set the custome position of View in MainFrame?
> To: [email protected]
> Date: Sunday, August 9, 2009, 8:20 PM
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
>     
>                   I got it. Mapping WM_SIZE to myself callback function can handle this.
> 
> 
> 
> --- In wtl@yahoogroups. com, "hawkgao" <hawkgao@ > wrote:
> 
> >
> 
> > Hello folks,
> 
> > In common, the view in a single document mainframe occupys all the client area.However, I need such view move down and draw something in the area over theview. 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 the call of Create(). 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
> 
> >
> 
> 
> 
> 
>  
> 
>       
> 
>     
>     
> 	
> 	 
> 	
> 	
> 
> 
> 
> 
> 
> 
> 
> 
> 	
> 
> 
> 	
> 	
> 
> 
>       
> 
> [Non-text portions of this message have been removed]
>




------------------------------------

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.