#ifndef WIDGETCHECKBOX_H #define WIDGETCHECKBOX_H #include #include "widget.h" //! A Checkbox class class CCheckbox: public CWidget { public: /*! Constructor */ CCheckbox(); /*! Create Checkbox \param parent HANDLE of the parent window on which to draw \param name Name of the Checkbox \param x Top left x coordinate \param y Top left y coordinate \param w Checkbox width \param h Checkbox height \param style Style flags \param ID ID sent to parent when Checkbox is (un)checked (MSG_COMMAND) \return Success: S_OK\n Failure: E_HANDLE */ HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, int style, unsigned int ID) ; /*! Enable Checkbox */ HRESULT Enable(); /*! Disable Checkbox */ HRESULT Disable(); /*! Set State \param state Checked: nonzero\n Unchecked: 0 */ HRESULT SetState(int state); /*! Get State \return Nonzero if Checked\n 0 if Unchecked */ int GetState(); }; #endif