|
SkinPlusPlus Dll Method & COM Interface |
获得某窗口的Metric值
-------DLL Method-------
int sppGetSystemMetrics(
HWND hWnd, //窗口句柄
int nIndex //类型值
);
-------Com Interface-------
int GetSystemMetrics(
long hWnd, //窗口句柄
SystemMetricsIndexs enumIndexs //类型枚举
);
hWnd
[in]窗口句柄
nIndex
[in]类型值
类型值同GetSystemMetrics API函数的参数。详细请见 Metrics Defines.
enumIndexs
[in]类型枚举
该参数为SystemMetricsIndexs枚举值。
如果执行成功返回Skin++定义的Metrics值,如果执行失败返回-1.
Skin++对窗口换肤后,会改变窗口的Metrics各种属性。用户有时候需要获得目前窗口的Metrics值,可以使用该函数取值。
该函数的功能类似于 GetSystemMetrics API 函数,但也有区别:本函数是针对某个窗口取值,因为Skin++可以允许同时存在
2种以上的皮肤风格,所以对Metrics的值要具体到某个窗口。而GetSysMetrics API函数,是取得Windows系统默认Metrics的各种值
例 子:
※ V C:
sppGetSystemMetrics (m_hWnd, SM_CYCAPTION);
支持的操作系统:Windows 95/98/Me/ NT/2000/XP/2003/Vista
Skin++版本 :Skin++ 标准版 不支持,,Skin++ 企业版2.0及以上版本支持,Skin++源码版2.0及以上版本支持
C++ 头文件 : 在SkinPPInc.h 和SkinPPWTL.h描述.
DLL 宿主文件 : SkinPPWTL.dll,SkinPlusPlus.dll,SkinPPPowerBuilder,SkinPPBorland,SkinPPBCB,SkinPPE.
COM 宿主文件 : SkinPPDotNet.dll,SkinPPVB.dll,SkinPPDelphiNet.dll
Copyright@2004-2007
上海勇进软件有限公司,保留所有权利。
如果您对帮助系统有任何建议,可以直接发邮件到support@uipower.com
Visual
Studio,和Visual
Studio logo 是微软公司在美国或在其他国家的注册商标。
| Converted from CHM to HTML with chm2web Standard 2.7 (unicode) |