请问怎么重绘CTabCtrl,或是CPropersheet/CPage,谁能给个例子,我主要要改变属性按钮(样式,颜色等)和背景颜色等

解决方案 »

  1.   

    利用BOOL ModifyStyle( 
    DWORD dwRemove, 
    DWORD dwAdd, 
    UINT nFlags = 0 );
      

  2.   

    // This example adds the WS_CLIPCHILDREN style to the window.
    // No Styles are removed from the window.void CMyView::OnInitialUpdate()
    {
      CView::OnInitialUpdate();
      ModifyStyle(0, WS_CLIPCHILDREN);
    }
      

  3.   

    重载OnPaint()函数,想怎么画就随你了
    我这儿到有个例子,不过比较复杂,你要用的话可以借你看看
      

  4.   

    我现在就是在OnPaint下画的背景,在OnPaint下GetClientRect得的rect,直接画,画不到边框,边框还是老样子,所以我用rect.left-2,rect.top-2,rect.right+2,rect.bottom+2这个新的rect画,"选项卡按钮"就在DrawItem下画,结构->rcItem得的rect也有点不理想,还是要"加大点"这个rect画,你们的方法是怎么的?