Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members Related Pages

# ButtonGroup.h

Go to the documentation of this file.

    00001 #ifndef BUTTONGROUP_H
    00002 #define BUTTONGROUP_H
    00003
    00004 #include "StateButton.h"
    00005
    00006 namespace wkgl {
    00007
    00010 class ButtonGroup
    00011 {
    00012   protected:
    00016     static unsigned long group_iterator;
    00017     unsigned long group_num;
    00018     StateButton* cur;
    00019
    00020   public:
    00024     ButtonGroup();
    00025
    00029     void add( StateButton *but );
    00030
    00034     StateButton* getCheckedButton();
    00035
    00039     void setCheckedButton( StateButton* button );
    00040
    00044     unsigned long getGroupNumber();
    00045
    00049   friend BOOL setButtons( Component*, UINT, WPARAM, LPARAM );
    00050 };
    00051
    00052 }
    00053 #endif