// Interface to MenuButtons
// Implementation is in MenuButtons.cpp
#ifndef BUTTONS_DECL
#define BUTTONS_DECL true
// Buttons class
class buttons
{
private:
int menu_level; // Menu level (0=top)
bool at_leaves; // Flag to indicate bottom of tree
char menu_stack[MAX_CAT_LEVELS+2][50]; // Parents of current menu
// Private functions
void buttons::Put_Text_On_Buttons(HWND*, HWND*);
void buttons::StoreCheckValues(HWND*, pglist*);
public:
char szButtonValue[10][50]; // Button (and check box) values
char szCheckIDs[10][10]; // Check box IDs
char szHeading[200]; // Menu heading
// Public functions
buttons(); // Constructor
void buttons::PickCategory(int, HWND*, pglist*); // Change to new menu
void buttons::Set_Buttons(HWND*, HWND*, pglist*); // Set new button values
int buttons::MenuLevel(); // Provide protected 'menu level' access
bool buttons::AtLeaves(); // Provide protected 'at leaves' access
};
#endif
syntax highlighted by Code2HTML, v. 0.8.11