PMControl: Difference between revisions
Appearance
No edit summary |
m Ak120 moved page OS2 API:PM++:PMControl to PMControl |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
PMControl is | PMControl is inherited from PMWin, so all inline functions are inherited form PMWin. PMControl has also two virtual functions (get and set) which permit to get and set the control specific data in an uniform and control-independent way. | ||
The first implementation of the PMControl class used to set the USER window pointer to | The first implementation of the PMControl class used to set the USER window pointer to the address of the PMControl object; unfortunately some of the control don't allow to set the USER window pointer, and so the controlFromID function must use a different technique to retrieve the pointer to the PMControl object (the pointer is also maintained in the control list structure, and a linear search is performed each time the pointer to the control is requested.) | ||
[[Category:PM++]] | |||
[[Category: |
Latest revision as of 09:29, 14 February 2017
Description
PMControl is inherited from PMWin, so all inline functions are inherited form PMWin. PMControl has also two virtual functions (get and set) which permit to get and set the control specific data in an uniform and control-independent way.
The first implementation of the PMControl class used to set the USER window pointer to the address of the PMControl object; unfortunately some of the control don't allow to set the USER window pointer, and so the controlFromID function must use a different technique to retrieve the pointer to the PMControl object (the pointer is also maintained in the control list structure, and a linear search is performed each time the pointer to the control is requested.)