Main Page Class Hierarchy Compound List File List Compound Members File Members

# MNStateButton.h

Go to the documentation of this file.

    00001
    00002
    00003
    00004 #ifndef MNSTATEBUTTON_H
    00005 #define MNSTATEBUTTON_H
    00006
    00007 #include "MNAbstractButton.h"
    00008
    00009 // The debugger can't handle symbols more than 255 characters long.
    00010 // STL often creates symbols longer than that.
    00011 // When symbols are longer than 255 characters, the warning is disabled.
    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