新开博客

试试这里吧!

 1 BOOL CChildFrame1::PreCreateWindow(CREATESTRUCT& cs)
 2 {
 3     // TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
 4     if( !CMDIChildWndEx::PreCreateWindow(cs) )
 5         return FALSE;
 6 
 7     cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
 8         | FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
 9 
10 
11     return TRUE;
12 }

Test

View Code
 1 BOOL CChildFrame1::PreCreateWindow(CREATESTRUCT& cs)
 2 {
 3     // TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
 4     if( !CMDIChildWndEx::PreCreateWindow(cs) )
 5         return FALSE;
 6 
 7     cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
 8         | FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
 9 
10 
11     return TRUE;
12 }

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

View Code 
 BOOL CChildFrame1::PreCreateWindow(CREATESTRUCT& cs)
 {
     // TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
     if( !CMDIChildWndEx::PreCreateWindow(cs) )
         return FALSE;
 
     cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
         | FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
 
 
     return TRUE;
 }

  

 

posted @ 2012-10-23 11:17  xxheart  阅读(192)  评论(0)    收藏  举报