本文整理匯總了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);
}