FlatToolBar.h
上传用户:trilite
上传日期:2007-04-24
资源大小:261k
文件大小:1k
源码类别:

酒店行业

开发平台:

Visual C++

  1. class CFlatToolBar : public CToolBar 
  2. {
  3.    DECLARE_DYNAMIC(CFlatToolBar);
  4. public:
  5. CStatic m_static1;
  6. CStatic m_static2;
  7. CStatic m_static3;
  8.     CEdit m_editbox;
  9.    public:
  10.       void SetFlatLookStyle();
  11.       void RepaintBackground();
  12.       void DrawSeparators();
  13.       void DrawSeparators(CClientDC* pDC);
  14.       void EraseNonClient();
  15.       void DrawGripper(CWindowDC *pDC, CRect& rectWindow);
  16.    protected:
  17.       // ClassWizard generated virtual function overrides
  18.       //{{AFX_VIRTUAL(CFlatToolBar)
  19.       virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
  20.       //}}AFX_VIRTUAL
  21.    // 消息处理函数
  22.    protected:
  23.    //{{AFX_MSG(CFlatToolBar)
  24.    afx_msg void OnWindowPosChanging(LPWINDOWPOS lpWndPos);
  25.    afx_msg void OnPaint();
  26.    afx_msg void OnNcPaint();
  27.    afx_msg void OnNcCalcSize( BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp );
  28.    //}}AFX_MSG
  29.    DECLARE_MESSAGE_MAP();
  30. };