08-10-2009 06:44 AM
Bonjour,
est-il possible d'avoir la liste des controles présents dans un panel à l'aide d'une fonction (cette fonction retournerait par exemple le nombre de controles, et leur identifiant) ?
Merci
08-10-2009 10:54 AM
You can enumerate the controls present in a panel in using the following:
Status = GetPanelAttribute (panelHandle, ATTR_PANEL_FIRST_CTRL, &CtrlID); //To obtain the first control of the panel
while (Status == 0 && CtrlID > 0)
{
Status = GetCtrlAttribute (panelHandle, CtrlID, ATTR_NEXT_CTRL, &CtrlID );
}
Best regards,
Nicolas
08-11-2009 01:56 AM