07-27-2006 06:27 AM
07-27-2006 07:04 AM
Hello sks,
I think the easiest way is using the function GetUserEvent. From this function you can get the handle of the panel and the control that the user clicked.
do{
GetUserEvent (1, &pnl, &ctrl);
} while (!(pnl == panel && (ctrl == PNL_OPTION1 || panel == PNL_OPTION2)));
if (ctrl == PNL_OPTION1){
...
}
else if (ctrl == PNL_OPTION2){
...
}