Qt 4.8
Classes | Macros | Typedefs | Enumerations | Functions | Variables
qwizard_win.cpp File Reference
#include "qwizard_win_p.h"
#include <private/qsystemlibrary_p.h>
#include "qwizard.h"
#include "qpaintengine.h"
#include "qapplication.h"
#include <QtGui/QMouseEvent>
#include <QtGui/QDesktopWidget>
#include <uxtheme.h>

Go to the source code of this file.

Classes

class  QHackWidget
 
struct  WIZ_DTTOPTS
 
struct  WIZ_MARGINS
 
struct  WIZ_WTA_OPTIONS
 

Macros

#define WIZ_CS_ACTIVE   1
 
#define WIZ_DT_CENTER   0x00000001
 
#define WIZ_DT_NOPREFIX   0x00000800
 
#define WIZ_DT_SINGLELINE   0x00000020
 
#define WIZ_DT_VCENTER   0x00000004
 
#define WIZ_DTT_COMPOSITED   (1UL << 13)
 
#define WIZ_DTT_GLOWSIZE   (1UL << 11)
 
#define WIZ_TMT_BORDERCOLORHINT   3822
 
#define WIZ_TMT_CAPTIONFONT   (801)
 
#define WIZ_TMT_FILLCOLORHINT   3821
 
#define WIZ_WM_DWMCOMPOSITIONCHANGED   0x031E
 
#define WIZ_WM_NCMOUSELEAVE   674
 
#define WIZ_WM_THEMECHANGED   0x031A
 
#define WIZ_WP_CAPTION   1
 
#define WIZ_WTNCA_NODRAWCAPTION   0x00000001
 
#define WIZ_WTNCA_NODRAWICON   0x00000002
 

Typedefs

typedef HRESULT(WINAPI * PtrCloseThemeData) (HANDLE hTheme)
 
typedef HRESULT(WINAPI * PtrDrawThemeBackground) (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const RECT *pClipRect)
 
typedef HRESULT(WINAPI * PtrDrawThemeTextEx) (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int cchText, DWORD dwTextFlags, LPRECT pRect, const WIZ_DTTOPTS *pOptions)
 
typedef BOOL(WINAPI * PtrDwmDefWindowProc) (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
 
typedef HRESULT(WINAPI * PtrDwmExtendFrameIntoClientArea) (HWND hWnd, const WIZ_MARGINS *pMarInset)
 
typedef HRESULT(WINAPI * PtrDwmIsCompositionEnabled) (BOOL *pfEnabled)
 
typedef HRESULT(WINAPI * PtrGetThemeColor) (HANDLE hTheme, int iPartId, int iStateId, int iPropId, OUT COLORREF *pColor)
 
typedef HRESULT(WINAPI * PtrGetThemePartSize) (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, OPTIONAL RECT *prc, enum THEMESIZE eSize, OUT SIZE *psz)
 
typedef HRESULT(WINAPI * PtrGetThemeSysFont) (HANDLE hTheme, int iFontId, LOGFONTW *plf)
 
typedef bool(WINAPI * PtrIsAppThemed) ()
 
typedef bool(WINAPI * PtrIsThemeActive) ()
 
typedef HANDLE(WINAPI * PtrOpenThemeData) (HWND hwnd, LPCWSTR pszClassList)
 
typedef HRESULT(WINAPI * PtrSetWindowThemeAttribute) (HWND hwnd, enum WIZ_WINDOWTHEMEATTRIBUTETYPE eAttribute, PVOID pvAttribute, DWORD cbAttribute)
 

Enumerations

enum  WIZ_NAV_BACKBUTTONSTATES { WIZ_NAV_BB_NORMAL = 1, WIZ_NAV_BB_HOT = 2, WIZ_NAV_BB_PRESSED = 3, WIZ_NAV_BB_DISABLED = 4 }
 
enum  WIZ_NAVIGATIONPARTS { WIZ_NAV_BACKBUTTON = 1, WIZ_NAV_FORWARDBUTTON = 2, WIZ_NAV_MENUBUTTON = 3 }
 
enum  WIZ_WINDOWTHEMEATTRIBUTETYPE { WIZ_WTA_NONCLIENT = 1 }
 

Functions

static int getWindowBottomMargin ()
 

Variables

static PtrCloseThemeData pCloseThemeData = 0
 
static PtrDrawThemeBackground pDrawThemeBackground = 0
 
static PtrDrawThemeTextEx pDrawThemeTextEx = 0
 
static PtrDwmDefWindowProc pDwmDefWindowProc = 0
 
static PtrDwmExtendFrameIntoClientArea pDwmExtendFrameIntoClientArea = 0
 
static PtrDwmIsCompositionEnabled pDwmIsCompositionEnabled = 0
 
static PtrGetThemeColor pGetThemeColor = 0
 
static PtrGetThemePartSize pGetThemePartSize = 0
 
static PtrGetThemeSysFont pGetThemeSysFont = 0
 
static PtrIsAppThemed pIsAppThemed = 0
 
static PtrIsThemeActive pIsThemeActive = 0
 
static PtrOpenThemeData pOpenThemeData = 0
 
static PtrSetWindowThemeAttribute pSetWindowThemeAttribute = 0
 

Macro Definition Documentation

◆ WIZ_CS_ACTIVE

#define WIZ_CS_ACTIVE   1

Definition at line 132 of file qwizard_win.cpp.

Referenced by QVistaHelper::basicWindowFrameColor().

◆ WIZ_DT_CENTER

#define WIZ_DT_CENTER   0x00000001

Definition at line 107 of file qwizard_win.cpp.

Referenced by QVistaHelper::drawTitleText().

◆ WIZ_DT_NOPREFIX

#define WIZ_DT_NOPREFIX   0x00000800

Definition at line 110 of file qwizard_win.cpp.

Referenced by QVistaHelper::drawTitleText().

◆ WIZ_DT_SINGLELINE

#define WIZ_DT_SINGLELINE   0x00000020

Definition at line 109 of file qwizard_win.cpp.

Referenced by QVistaHelper::drawTitleText().

◆ WIZ_DT_VCENTER

#define WIZ_DT_VCENTER   0x00000004

Definition at line 108 of file qwizard_win.cpp.

Referenced by QVistaHelper::drawTitleText().

◆ WIZ_DTT_COMPOSITED

#define WIZ_DTT_COMPOSITED   (1UL << 13)

Definition at line 126 of file qwizard_win.cpp.

Referenced by QVistaHelper::drawTitleText().

◆ WIZ_DTT_GLOWSIZE

#define WIZ_DTT_GLOWSIZE   (1UL << 11)

Definition at line 127 of file qwizard_win.cpp.

Referenced by QVistaHelper::drawTitleText().

◆ WIZ_TMT_BORDERCOLORHINT

#define WIZ_TMT_BORDERCOLORHINT   3822

Definition at line 134 of file qwizard_win.cpp.

Referenced by QVistaHelper::basicWindowFrameColor().

◆ WIZ_TMT_CAPTIONFONT

#define WIZ_TMT_CAPTIONFONT   (801)

Definition at line 125 of file qwizard_win.cpp.

Referenced by QVistaHelper::getCaptionFont().

◆ WIZ_TMT_FILLCOLORHINT

#define WIZ_TMT_FILLCOLORHINT   3821

Definition at line 133 of file qwizard_win.cpp.

Referenced by QVistaHelper::basicWindowFrameColor().

◆ WIZ_WM_DWMCOMPOSITIONCHANGED

#define WIZ_WM_DWMCOMPOSITIONCHANGED   0x031E

Definition at line 98 of file qwizard_win.cpp.

Referenced by QVistaHelper::handleWinEvent().

◆ WIZ_WM_NCMOUSELEAVE

#define WIZ_WM_NCMOUSELEAVE   674

Definition at line 129 of file qwizard_win.cpp.

◆ WIZ_WM_THEMECHANGED

#define WIZ_WM_THEMECHANGED   0x031A

Definition at line 97 of file qwizard_win.cpp.

Referenced by QVistaHelper::handleWinEvent().

◆ WIZ_WP_CAPTION

#define WIZ_WP_CAPTION   1

Definition at line 131 of file qwizard_win.cpp.

Referenced by QVistaHelper::basicWindowFrameColor().

◆ WIZ_WTNCA_NODRAWCAPTION

#define WIZ_WTNCA_NODRAWCAPTION   0x00000001

Definition at line 104 of file qwizard_win.cpp.

Referenced by QVistaHelper::setTitleBarIconAndCaptionVisible().

◆ WIZ_WTNCA_NODRAWICON

#define WIZ_WTNCA_NODRAWICON   0x00000002

Definition at line 105 of file qwizard_win.cpp.

Referenced by QVistaHelper::setTitleBarIconAndCaptionVisible().

Typedef Documentation

◆ PtrCloseThemeData

typedef HRESULT(WINAPI * PtrCloseThemeData) (HANDLE hTheme)

Definition at line 150 of file qwizard_win.cpp.

◆ PtrDrawThemeBackground

typedef HRESULT(WINAPI * PtrDrawThemeBackground) (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const RECT *pClipRect)

Definition at line 153 of file qwizard_win.cpp.

◆ PtrDrawThemeTextEx

typedef HRESULT(WINAPI * PtrDrawThemeTextEx) (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int cchText, DWORD dwTextFlags, LPRECT pRect, const WIZ_DTTOPTS *pOptions)

Definition at line 152 of file qwizard_win.cpp.

◆ PtrDwmDefWindowProc

typedef BOOL(WINAPI * PtrDwmDefWindowProc) (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)

Definition at line 136 of file qwizard_win.cpp.

◆ PtrDwmExtendFrameIntoClientArea

typedef HRESULT(WINAPI * PtrDwmExtendFrameIntoClientArea) (HWND hWnd, const WIZ_MARGINS *pMarInset)

Definition at line 138 of file qwizard_win.cpp.

◆ PtrDwmIsCompositionEnabled

typedef HRESULT(WINAPI * PtrDwmIsCompositionEnabled) (BOOL *pfEnabled)

Definition at line 137 of file qwizard_win.cpp.

◆ PtrGetThemeColor

typedef HRESULT(WINAPI * PtrGetThemeColor) (HANDLE hTheme, int iPartId, int iStateId, int iPropId, OUT COLORREF *pColor)

Definition at line 155 of file qwizard_win.cpp.

◆ PtrGetThemePartSize

typedef HRESULT(WINAPI * PtrGetThemePartSize) (HANDLE hTheme, HDC hdc, int iPartId, int iStateId, OPTIONAL RECT *prc, enum THEMESIZE eSize, OUT SIZE *psz)

Definition at line 154 of file qwizard_win.cpp.

◆ PtrGetThemeSysFont

typedef HRESULT(WINAPI * PtrGetThemeSysFont) (HANDLE hTheme, int iFontId, LOGFONTW *plf)

Definition at line 151 of file qwizard_win.cpp.

◆ PtrIsAppThemed

typedef bool(WINAPI * PtrIsAppThemed) ()

Definition at line 147 of file qwizard_win.cpp.

◆ PtrIsThemeActive

typedef bool(WINAPI * PtrIsThemeActive) ()

Definition at line 148 of file qwizard_win.cpp.

◆ PtrOpenThemeData

typedef HANDLE(WINAPI * PtrOpenThemeData) (HWND hwnd, LPCWSTR pszClassList)

Definition at line 149 of file qwizard_win.cpp.

◆ PtrSetWindowThemeAttribute

typedef HRESULT(WINAPI * PtrSetWindowThemeAttribute) (HWND hwnd, enum WIZ_WINDOWTHEMEATTRIBUTETYPE eAttribute, PVOID pvAttribute, DWORD cbAttribute)

Definition at line 139 of file qwizard_win.cpp.

Enumeration Type Documentation

◆ WIZ_NAV_BACKBUTTONSTATES

Enumerator
WIZ_NAV_BB_NORMAL 
WIZ_NAV_BB_HOT 
WIZ_NAV_BB_PRESSED 
WIZ_NAV_BB_DISABLED 

Definition at line 118 of file qwizard_win.cpp.

◆ WIZ_NAVIGATIONPARTS

Enumerator
WIZ_NAV_BACKBUTTON 
WIZ_NAV_FORWARDBUTTON 
WIZ_NAV_MENUBUTTON 

Definition at line 112 of file qwizard_win.cpp.

◆ WIZ_WINDOWTHEMEATTRIBUTETYPE

Enumerator
WIZ_WTA_NONCLIENT 

Definition at line 100 of file qwizard_win.cpp.

100  {
102 };

Function Documentation

◆ getWindowBottomMargin()

static int getWindowBottomMargin ( )
inlinestatic

Definition at line 741 of file qwizard_win.cpp.

Referenced by QVistaHelper::frameSize().

742 {
743  return GetSystemMetrics(SM_CYSIZEFRAME);
744 }

Variable Documentation

◆ pCloseThemeData

PtrCloseThemeData pCloseThemeData = 0
static

Definition at line 160 of file qwizard_win.cpp.

Referenced by QVistaHelper::resolveSymbols().

◆ pDrawThemeBackground

PtrDrawThemeBackground pDrawThemeBackground = 0
static

Definition at line 163 of file qwizard_win.cpp.

Referenced by QVistaBackButton::paintEvent(), and QVistaHelper::resolveSymbols().

◆ pDrawThemeTextEx

PtrDrawThemeTextEx pDrawThemeTextEx = 0
static

Definition at line 162 of file qwizard_win.cpp.

Referenced by QVistaHelper::drawTitleText(), and QVistaHelper::resolveSymbols().

◆ pDwmDefWindowProc

PtrDwmDefWindowProc pDwmDefWindowProc = 0
static

Definition at line 141 of file qwizard_win.cpp.

Referenced by QVistaHelper::resolveSymbols(), and QVistaHelper::winEvent().

◆ pDwmExtendFrameIntoClientArea

PtrDwmExtendFrameIntoClientArea pDwmExtendFrameIntoClientArea = 0
static

Definition at line 143 of file qwizard_win.cpp.

Referenced by QVistaHelper::resolveSymbols(), and QVistaHelper::setDWMTitleBar().

◆ pDwmIsCompositionEnabled

PtrDwmIsCompositionEnabled pDwmIsCompositionEnabled = 0
static

◆ pGetThemeColor

PtrGetThemeColor pGetThemeColor = 0
static

◆ pGetThemePartSize

PtrGetThemePartSize pGetThemePartSize = 0
static

Definition at line 164 of file qwizard_win.cpp.

Referenced by QVistaHelper::resolveSymbols().

◆ pGetThemeSysFont

PtrGetThemeSysFont pGetThemeSysFont = 0
static

Definition at line 161 of file qwizard_win.cpp.

Referenced by QVistaHelper::getCaptionFont(), and QVistaHelper::resolveSymbols().

◆ pIsAppThemed

PtrIsAppThemed pIsAppThemed = 0
static

Definition at line 157 of file qwizard_win.cpp.

Referenced by QVistaHelper::resolveSymbols().

◆ pIsThemeActive

PtrIsThemeActive pIsThemeActive = 0
static

Definition at line 158 of file qwizard_win.cpp.

Referenced by QVistaHelper::isThemeActive(), and QVistaHelper::resolveSymbols().

◆ pOpenThemeData

PtrOpenThemeData pOpenThemeData = 0
static

◆ pSetWindowThemeAttribute

PtrSetWindowThemeAttribute pSetWindowThemeAttribute = 0
static