关于SkinMagic的SkinCaptionButton的使用问题。
Alan 2005-02-19 05:25:17 1、如何使用skinmagic的SkinCaptionButton创建一个自定义功能按钮?
例如创建一个SkinCaptionButton按钮,点击这个按钮弹出一个菜单。
我没有skinmagic的源代码,不太清楚如何处理。
2、GetCaptionButtonState如何使用才能得到按钮状态?
帮助文件内容如下,才疏学浅没能测试成功,请各位不吝赐教!
BOOL GetCaptionButtonState(
HWND hWnd, //Handle to the window
LPCTSTR pszName,
DWORD* pdwState,
);
Parameters
hWnd
[in] Handle to the window whose menu handle is assigned.
pszName
[in] the captionbutton's name
pdwState
[out] Pointer to a DWORD variable to retrieves the button state.
CPBS_HOVERED : Mouse hovered the button.
CPBS_PRESSED : The button be pressed state.
CPBS_DISABLED: The button is disabled state.
CPBS_NORMAL: The button is normal state.
能否提供一个使用SkinCaptionButton的简单例子?
skinmagic版本:2.0b1