00001
00002
00003
00004 #ifndef MNSTATEBUTTON_H
00005 #define MNSTATEBUTTON_H
00006
00007 #include "MNAbstractButton.h"
00008
00009
00010
00011
00012 #pragma warning(disable:4786)
00013
00026 class MNStateButton : public MNAbstractButton
00027 {
00028 protected:
00029 int type;
00030
00031 public:
00035 MNStateButton( MNComponent *parent, LPSTR label, int x, int y,
00036 int type, int width = AUTOSIZE, int height = AUTOSIZE,
00037 int style = 0 );
00038
00042 void SetState( int state );
00043
00047 int GetState();
00048
00052 BOOL isChecked();
00053
00057 friend BOOL DefHandler( MNComponent* com, UINT message,
00058 WPARAM wParam, LPARAM lParam );
00059 };
00060
00061 #endif