Function 8 - define/delete the button.
Parameters for button definition:
- eax = 8 - function number
- ebx = [coordinate on axis x]*65536 + [size on axis x]
- ecx = [coordinate on axis y]*65536 + [size on axis y]
- edx = 0xXYnnnnnn, where:
- nnnnnn = identifier of the button
- high (31st) bit of edx is cleared
- if 30th bit of edx is set - do not draw the button
- if 29th bit of edx is set - do not draw a frame
at pressing the button
- esi = 0x00RRGGBB - color of the button
Parameters for button deleting:
- eax = 8 - function number
- edx = 0x80nnnnnn, where nnnnnn - identifier of the button
Returned value:
- function does not return value
Remarks:
- Sizes of the button must be more than 0 and less than 0x8000.
- For skinned windows definition of the window
(call of 0th function) creates two standard buttons -
for close of the window with identifier 1 and
for minimize of the window with identifier 0xffff.
- The creation of two buttons with same identifiers is admitted.
- The button with the identifier 0xffff at pressing is interpreted
by the system as the button of minimization, the system handles
such pressing independently, not accessing to the application.
In rest it is usual button.
- Total number of buttons for all applications is limited to 4095.