/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2006.12.11 * ³» ¿ë : üũ ¹öư * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cCheckButtonGroup; /// üũ ¹öư class cCheckButton : public CButton { friend class cCheckButtonGroup; public: cCheckButton(); virtual ~cCheckButton(); /// ±×·ìÀ» ¼³Á¤ void SetGroup( cCheckButtonGroup* group ); /// üũ ¿©ºÎ ¼³Á¤ void SetChecked( bool checked ); /// üũ ¿©ºÎ ¸®ÅÏ bool IsChecked() const; protected: 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 OnLButtonUp( UINT flags, CPoint point ); DECLARE_MESSAGE_MAP() protected: /// ±×·ì cCheckButtonGroup* mGroup; /// üũ ¿©ºÎ bool mChecked; /// ±×·ì ³»ºÎ À妽º unsigned int mIndex; }; inline bool cCheckButton::IsChecked() const { return mChecked; }