The EPI_getWindowsHandle function it returns the window handle for the control when given the panel id and the button id.
EPI_getWindowsHandle( HMODULE hEagle, int panel, int button, int *whandle );
Parameters
hEagle
value of the Eagle handle, which can be obtained through the EPI_getEagleHandle function.
int panel
the control panel ID
or
panel 96
int button
the control button ID
or
button -1
or
button 0
Return Value
The original behavior of the EPI_getWindowHandle has been extended and changed to the following:
- passing a valid panel and a valid button it returns the handle of the button (the existing original behaviour);
- passing button=-1 returns the handle of the panel (including panel 96 the tab-container)(existing behaviour undocumented);
- passing panel=96 and button=0 it returns the handle of the tab-control object (new behaviour)(new behaviour);
- If a return of -9 is made if the requested control is a radio box