Is there a default value for no panel or no control like -1 that can be used to initialize a varible that has not been assigned the value of a valid control or panel.
BTW, it would be nice to have structs predefined in your headers for controls, example:
typedef struct _CONTROL {
int panel_id;
int control_id;
} CTRL, *pCTRL;
This would make it easier to pass data to funtions. Or maybe provide access to the internal data struct for controls through a fucntion like
pointerControl = GetControlStruct(); and it would return all control values like position, pointer to buffer of the data, panel id and control id, and what ever else controls have. I suppose it would not be too hard to write wrppers arround the GetCtrlAttribute to do so,
but it would be nice to hav these.