/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2006.12.11 * ³» ¿ë : ÅÇ ¹öư * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cTabButtonGroup; /// ÅÇ ¹öư class cTabButton : public CButton { friend class cTabButtonGroup; public: cTabButton(); virtual ~cTabButton(); /// ±×·ìÀ» ¼³Á¤ void SetGroup( cTabButtonGroup* group ); /// À©µµ¿ì¸¦ ¼³Á¤ void SetWindow( CWnd* wnd ); /// üũ ¿©ºÎ ¼³Á¤ void SetChecked( bool checked ); /// üũ ¿©ºÎ ¸®ÅÏ bool IsChecked() const; public: virtual void DrawItem( LPDRAWITEMSTRUCT ds ); protected: void DrawFrame( CDC* dc, LPDRAWITEMSTRUCT ds ); void DrawBorder( CDC* dc, LPDRAWITEMSTRUCT ds ); void DrawCaption( CDC* dc, LPDRAWITEMSTRUCT ds ); protected: afx_msg BOOL OnEraseBkgnd( CDC* dc ); afx_msg void OnLButtonDown( UINT flags, CPoint point ); DECLARE_MESSAGE_MAP() protected: /// ±×·ì cTabButtonGroup* mGroup; /// À©µµ¿ì CWnd* mWindow; /// üũ ¿©ºÎ bool mChecked; /// ±×·ì ³»ºÎ À妽º unsigned int mIndex; }; inline void cTabButton::SetWindow( CWnd* wnd ) { mWindow = wnd; } inline bool cTabButton::IsChecked() const { return mChecked; }