Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
abmButtonSubclassEx function 
 
Remarks
Given a container, takes control over one of its buttons: after calling this function, the button rendering will be under the control of this API functions. 
This function must be called before any other function that will change the button look & feel. 
This function must be used in alternative to the abmButtonSubclass function with development environments that don't allow a full subclassing as: 
  • Visual Basic 6.0 
  • Visual Basic.NET 
  • Visual C#.NET
  • Return value
    Value
    Meaning
     
     
    -1
    The operation failed.
    0
    The operation was successful
    Syntax
    short abmButtonSubclassEx
    HWND hWndContainer, 
    HWND hWndBtn, 
    short nBtnStyle 
    ); 
     
    Parameters
    Description
    hWndContainer
    Windows handle associated to the buttons container.
    hWndBtn
    Windows handle associated to the button that must be subclassed.
    nBtnStyle
    The style of the button. Supported values are the following: 
    Value
    Meaning
    BS_PUSHBUTTON (0)
    Push button
    BS_CHECKBOX (2)
    Checkbox
    BS_RADIOBUTTON (4)
    Radio button
     
     
     
     
     
     
     
    Copyright © 2002-2009 MultiMedia Soft 
    Return to index