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

# MNAbstractButton.h

Go to the documentation of this file.

    00001
    00002
    00003
    00004
    00005 #ifndef MNABSTRACTBUTTON_H
    00006 #define MNABSTRACTBUTTON_H
    00007
    00008 #include "MNComponent.h"
    00009
    00010 // The debugger can't handle symbols more than 255 characters long.
    00011 // STL often creates symbols longer than that.
    00012 // When symbols are longer than 255 characters, the warning is disabled.
    00013 #pragma warning(disable:4786)
    00014
    00044 class MNAbstractButton : public MNComponent
    00045 {
    00046   protected:
    00047     bool        awidth;
    00048     bool        aheight;
    00049
    00050   public:
    00054     MNAbstractButton( MNComponent *parent, LPSTR label, int style,
    00055                       int x, int y,
    00056                       int width = AUTOSIZE, int height = AUTOSIZE );
    00057
    00061     virtual void SetText( LPSTR label );
    00062
    00063   protected:
    00067     MNAbstractButton();
    00068
    00072     int CalculateWidth( LPSTR label );
    00073 };
    00074 #endif