Defines an alternate icon image and tooltip for the specified button.
HRESULT msSiteModeAddButtonStyle( VARIANT uiButtonID, BSTR bstrIconUrl, VARIANT *pvarTooltip, VARIANT *pvarStyleID );
- [in] The ID of a button that is previously installed with msSiteModeAddThumbBarButton.
- [in] An absolute or relative URI of an icon resource.
- [in] A description of the button.
- [out, retval] Recieves the ID of the new button style.
Returns one of the following values.
S_OK The operation completed successfully. E_NOTIMPL This method is not supported on Windows CE.
A button style consists of an additional icon and tooltip for a button position. The msSiteModeAddButtonStyle method only creates button styles; to apply them, call msSiteModeShowButtonStyle. The original icon and tooltip are automatically saved as Style
0and do not need to be added again.
The button returns the same button ID no matter which button style is displayed. To perform the correct action, your application will need to retain the button state internally.
The icon is downloaded asynchronously. If the download fails, a blank button is used instead.