#if !defined(AFX_WINDOWCONTAINER_H__6A407FF3_A3F3_49BE_BCDC_8F710E760DC3__INCLUDED_) #define AFX_WINDOWCONTAINER_H__6A407FF3_A3F3_49BE_BCDC_8F710E760DC3__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // WindowContainer.h : header file // ///////////////////////////////////////////////////////////////////////////// // CWindowContainer window class CWindowContainer : public CWnd { // Construction public: CWindowContainer(); public: virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); // Attributes public: CString m_szClassName; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CWindowContainer) //}}AFX_VIRTUAL // Implementation public: virtual ~CWindowContainer(); BOOL GetInternalRect(RECT * rc); BOOL InsertTab(char * name,DWORD param,ULONG extra); BOOL RemoveTab(DWORD param,ULONG extra); // Generated message map functions int m_ToolbarHeight; protected: //{{AFX_MSG(CWindowContainer) afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonUp(UINT nFlags, CPoint point); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); //}}AFX_MSG void OnTabSelchanging(NMHDR* pNMHDR, LRESULT* pResult); DECLARE_MESSAGE_MAP() enum{ SPLIT_NONE=0, SPLIT_HORZ, SPLIT_VERT, SPLIT_QUAD }m_splitMode; CPoint m_ptLast; CPoint m_ptSplit; BOOL DrawPtSplitVert(HDC hdc,RECT rc,CPoint pt); BOOL DrawPtSplitHorz(HDC hdc,RECT rc,CPoint pt); const int splitThick; HIMAGELIST m_himl1; HIMAGELIST m_himl2; CToolBarCtrl m_Toolbar; CTabCtrl m_Tab; CFont * m_Font; DWORD m_CurTab; }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_WINDOWCONTAINER_H__6A407FF3_A3F3_49BE_BCDC_8F710E760DC3__INCLUDED_)