本文整理汇总了C++中GetProc函数的典型用法代码示例。如果您正苦于以下问题:C++ GetProc函数的具体用法?C++ GetProc怎么用?C++ GetProc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetProc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CloseThemeData
HRESULT CVisualStylesXP::CloseThemeData(HTHEME hTheme)
{
static PFNCLOSETHEMEDATA pfn = NULL;
if (pfn == NULL)
pfn = (PFNCLOSETHEMEDATA)GetProc("CloseThemeData", (void*)CloseThemeDataFail);
return (*pfn)(hTheme);
}
示例2: IsThemeDialogTextureEnabled
BOOL CVisualStylesXP::IsThemeDialogTextureEnabled(HWND hwnd)
{
static PFNISTHEMEDIALOGTEXTUREENABLED pfn = NULL;
if (pfn == NULL)
pfn = (PFNISTHEMEDIALOGTEXTUREENABLED)GetProc("IsThemeDialogTextureEnabled", (void*)IsThemeDialogTextureEnabledFail);
return (*pfn)(hwnd);
}
示例3: SetThemeAppProperties
void CVisualStylesXP::SetThemeAppProperties(DWORD dwFlags)
{
static PFNSETTHEMEAPPPROPERTIES pfn = NULL;
if (pfn == NULL)
pfn = (PFNSETTHEMEAPPPROPERTIES)GetProc("SetThemeAppProperties", (void*)SetThemeAppPropertiesFail);
(*pfn)(dwFlags);
}
示例4: IsThemeActive
BOOL CVisualStylesXP::IsThemeActive()
{
static PFNISTHEMEACTIVE pfn = NULL;
if (pfn == NULL)
pfn = (PFNISTHEMEACTIVE)GetProc("IsThemeActive", (void*)IsThemeActiveFail);
return (*pfn)();
}
示例5: GetWindowTheme
HTHEME CVisualStylesXP::GetWindowTheme(HWND hwnd)
{
static PFNGETWINDOWTHEME pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETWINDOWTHEME)GetProc("GetWindowTheme", (void*)GetWindowThemeFail);
return (*pfn)(hwnd);
}
示例6: GetThemeSysSize
int CVisualStylesXP::GetThemeSysSize(HTHEME hTheme, int iSizeId)
{
static PFNGETTHEMESYSSIZE pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMESYSSIZE)GetProc("GetThemeSysSize", (void*)GetThemeSysSizeFail);
return (*pfn)(hTheme, iSizeId);
}
示例7: GetThemeSysString
HRESULT CVisualStylesXP::GetThemeSysString(HTHEME hTheme, int iStringId, LPWSTR pszStringBuff, int cchMaxStringChars)
{
static PFNGETTHEMESYSSTRING pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMESYSSTRING)GetProc("GetThemeSysString", (void*)GetThemeSysStringFail);
return (*pfn)(hTheme, iStringId, pszStringBuff, cchMaxStringChars);
}
示例8: GetThemeBool
HRESULT CVisualStylesXP::GetThemeBool(HTHEME hTheme, int iPartId, int iStateId, int iPropId, BOOL *pfVal)
{
static PFNGETTHEMEBOOL pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMEBOOL)GetProc("GetThemeBool", (void*)GetThemeBoolFail);
return (*pfn)(hTheme, iPartId, iStateId, iPropId, pfVal);
}
示例9: GetThemeInt
HRESULT CVisualStylesXP::GetThemeInt(HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal)
{
static PFNGETTHEMEINT pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMEINT)GetProc("GetThemeInt", (void*)GetThemeIntFail);
return (*pfn)(hTheme, iPartId, iStateId, iPropId, piVal);
}
示例10: GetThemeColor
HRESULT CVisualStylesXP::GetThemeColor(HTHEME hTheme, int iPartId, int iStateId, int iPropId, COLORREF *pColor)
{
static PFNGETTHEMECOLOR pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMECOLOR)GetProc("GetThemeColor", (void*)GetThemeColorFail);
return (*pfn)(hTheme, iPartId, iStateId, iPropId, pColor);
}
示例11: GetThemeMetric
HRESULT CVisualStylesXP::GetThemeMetric(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, int *piVal)
{
static PFNGETTHEMEMETRIC pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMEMETRIC)GetProc("GetThemeMetric", (void*)GetThemeMetricFail);
return (*pfn)(hTheme, hdc, iPartId, iStateId, iPropId, piVal);
}
示例12: IsThemeBackgroundPartiallyTransparent
BOOL CVisualStylesXP::IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId, int iStateId)
{
static PFNISTHEMEBACKGROUNDPARTIALLYTRANSPARENT pfn = NULL;
if (pfn == NULL)
pfn = (PFNISTHEMEBACKGROUNDPARTIALLYTRANSPARENT)GetProc("IsThemeBackgroundPartiallyTransparent", (void*)IsThemeBackgroundPartiallyTransparentFail);
return (*pfn)(hTheme, iPartId, iStateId);
}
示例13: IsThemePartDefined
BOOL CVisualStylesXP::IsThemePartDefined(HTHEME hTheme, int iPartId, int iStateId)
{
static PFNISTHEMEPARTDEFINED pfn = NULL;
if (pfn == NULL)
pfn = (PFNISTHEMEPARTDEFINED)GetProc("IsThemePartDefined", (void*)IsThemePartDefinedFail);
return (*pfn)(hTheme, iPartId, iStateId);
}
示例14: GetThemeTextMetrics
HRESULT CVisualStylesXP::GetThemeTextMetrics(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, TEXTMETRIC* ptm)
{
static PFNGETTHEMETEXTMETRICS pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMETEXTMETRICS)GetProc("GetThemeTextMetrics", (void*)GetThemeTextMetricsFail);
return (*pfn)(hTheme, hdc, iPartId, iStateId, ptm);
}
示例15: GetThemeSysColorBrush
HBRUSH CVisualStylesXP::GetThemeSysColorBrush(HTHEME hTheme, int iColorId)
{
static PFNGETTHEMESYSCOLORBRUSH pfn = NULL;
if (pfn == NULL)
pfn = (PFNGETTHEMESYSCOLORBRUSH)GetProc("GetThemeSysColorBrush", (void*)GetThemeSysColorBrushFail);
return (*pfn)(hTheme, iColorId);
}