Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
abmGetTextSettingOnPos function 
 
Remarks
Given a text position, retrieves the text settings. 
You can change the available text settings using the abmSetTextSettingOnPos function.
Return value
None.
Syntax
void abmGetTextSettingOnPos  
HWND hWndBtn
short nPosition, 
TEXT_DESC *pdesc 
); 
 
 
Parameters
Description
hWndBtn
Windows handle associated to the button.
nPosition
The numeric value of the text whose settings will be retrieved. Supported values are the following: 
Mnemonic constant
Meaning
TEXTPOS_CAPTION (0)
Gets the caption text settings
TEXTPOS_LT (1)
Gets the Left-Top text settings
TEXTPOS_CT (2)
Gets the Center-Top text settings
TEXTPOS_RT (3)
Gets the Right-Top text settings
TEXTPOS_LM (4)
Gets the Left-Middle text settings
TEXTPOS_RM (5)
Gets the Right-Middle text settings
TEXTPOS_LB (6)
Gets the Left-Bottom text settings
TEXTPOS_CB (7)
Gets the Center-Bottom text settings
TEXTPOS_RB (8)
Gets the Right-Bottom text settings
pdesc
Address of the the TEXT_DESC structure that in output will contain the text settings.
 
Visual Basic example 
Dim txtDesc As TEXT_DESC 
abmGetTextSettingOnPos btn1.hWnd, TEXTPOS_CAPTION, txtDesc 
txtDesc.colorNormal = RGB (0, 255, 0) 
txtDesc.colorMouseOver = RGB (0, 0, 255) 
txtDesc.nAngle = 45 
abmSetTextSettingOnPos btn1.hWnd, TEXTPOS_CAPTION, txtDesc, 0 
With this code, after the call to the abmGetTextSettingOnPos function, the txtDesc structure will be filled with the caption settings of the button btn1
 
Visual C++ example 
TEXT_DESC txtDesc; 
abmGetTextSettingOnPos (btn1.GetSafeHwnd (), TEXTPOS_CAPTION, &txtDesc); 
txtDesc.colorNormal = RGB (0, 255, 0); 
txtDesc.colorMouseOver = RGB (0, 0, 255); 
txtDesc.nAngle = 45; 
abmSetTextSettingOnPos (btn1.GetSafeHwnd (), TEXTPOS_CAPTION, &txtDesc, 0); 
With this code, after the call to the abmGetTextSettingOnPos function, the txtDesc structure will be filled with the caption settings of the button btn1
 
 
 
 
 
 
 
Copyright © 2002-2009 MultiMedia Soft 
Return to index