Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
abmContainerColorSetting function 
 
Remarks
Given a container, changes the given surface color settings for all the buttons inside the container itself. 
This function is the "Container Level mode" function that matches the "Button Level mode" function abmSetSurfaceColorDesc
Return value
Value
Meaning
 
 
-1
The operation failed, probably because the given container doesn't exist.
0
The operation was successful
Syntax
short abmContainerColorSetting
HWND hWndContainer
short nElement
SURFACE_COLOR_DESC *pdescColor 
); 
 
Parameters
Description
hWndContainer
Windows handle associated to the buttons container.
nElement
Number representing the element whose color will be changed. Supported values are the following:  
Mnemonic constant
Meaning
SURFACE_BACK (0)
Sets the color of the button surface
SURFACE_MO (1)
Sets the color of the button surface when the mouse is over the button To avoid color changing when the mouse is over the button set it to BLACK RGB (0, 0, 0) (default).
SURFACE_FOCUS (2)
Sets the color of the button surface when it has the input focus but the mouse is outside the button. To avoid color changing when the button has the input focus set it to BLACK RGB (0, 0, 0) (default).
SURFACE_INTERIOR (3)
Sets the color of the interior of the button surface when the SpecialEffect property has a non-zero value.
SURFACE_DISABLED (4)
Sets the color of the disabled button surface
SURFACE_PRESSED (5)
Sets the color of the pressed button surface
pdescColor
Address of the the SURFACE_COLOR_DESC structure that contains the new text settings.
 
 
 
 
 
 
 
Copyright © 2002-2009 MultiMedia Soft 
Return to index