29 return static_cast<HPEN
>(SelectObject( hDC,
static_cast<HGDIOBJ
>(hPen) ));
34 DeleteObject(
static_cast<HGDIOBJ
>(hPen) );
39 return static_cast<HPEN
>(GetStockObject( nObject ));
44 return static_cast<HBRUSH
>(SelectObject( hDC,
static_cast<HGDIOBJ
>(hBrush) ));
49 DeleteObject(
static_cast<HGDIOBJ
>(hBrush) );
54 return static_cast<HBRUSH
>(GetStockObject( nObject ));
59 return static_cast<HFONT
>(SelectObject( hDC,
static_cast<HGDIOBJ
>(hFont) ));
64 DeleteObject(
static_cast<HGDIOBJ
>(hFont) );
69 return static_cast<HFONT
>(GetStockObject( nObject ));
74 return static_cast<HBITMAP
>(SelectObject( hDC,
static_cast<HGDIOBJ
>(hBitmap) ));
79 DeleteObject(
static_cast<HGDIOBJ
>(hBitmap) );
84 DeleteObject(
static_cast<HGDIOBJ
>(hRegion) );
89 return static_cast<HPALETTE
>(GetStockObject( nObject ));
94 DeleteObject(
static_cast<HGDIOBJ
>(hPalette) );
99 SetWindowLongPtrW( hWnd, GWL_STYLE, nStyle );
104 return GetWindowLongPtrW( hWnd, GWL_STYLE );
109 SetWindowLongPtrW( hWnd, GWL_EXSTYLE, nStyle );
114 return GetWindowLongPtrW( hWnd, GWL_EXSTYLE );
119 return IsIconic( hWnd );
124 return IsZoomed( hWnd );
129 SendMessageW( hWnd, WM_SETFONT,
reinterpret_cast<WPARAM
>(hFont), MAKELPARAM(
static_cast<UINT
>(bRedraw),0) );
134 return reinterpret_cast<HFONT
>(SendMessageW( hWnd, WM_GETFONT, 0, 0 ));
139 SetClassLongPtr( hWnd, GCLP_HCURSOR,
reinterpret_cast<LONG_PTR
>(hCursor) );
144 return reinterpret_cast<HCURSOR
>(GetClassLongPtr( hWnd, GCLP_HCURSOR ));
149 SetClassLongPtr( hWnd, GCLP_HICON,
reinterpret_cast<LONG_PTR
>(hIcon) );
154 return reinterpret_cast<HICON
>(GetClassLongPtr( hWnd, GCLP_HICON ));
159 return reinterpret_cast<HBRUSH
>(SetClassLongPtr( hWnd, GCLP_HBRBACKGROUND,
reinterpret_cast<LONG_PTR
>(hBrush) ));
164 return reinterpret_cast<HBRUSH
>(GetClassLongPtr( hWnd, GCLP_HBRBACKGROUND ));
169 return reinterpret_cast<HINSTANCE
>(GetWindowLongPtrW( hWnd, GWLP_HINSTANCE ));
173#define MOUSEZ_CLASSNAME L"MouseZ"
174#define MOUSEZ_TITLE L"Magellan MSWHEEL"
176#define MSH_WHEELMODULE_CLASS (MOUSEZ_CLASSNAME)
177#define MSH_WHEELMODULE_TITLE (MOUSEZ_TITLE)
179#define MSH_SCROLL_LINES L"MSH_SCROLL_LINES_MSG"
182#define WHEEL_DELTA 120
185#define WM_MOUSEWHEEL 0x020A
187#ifndef SPI_GETWHEELSCROLLLINES
188#define SPI_GETWHEELSCROLLLINES 104
190#ifndef SPI_SETWHEELSCROLLLINES
191#define SPI_SETWHEELSCROLLLINES 105
193#ifndef WHEEL_PAGESCROLL
194#define WHEEL_PAGESCROLL (UINT_MAX)
200#ifndef COLOR_GRADIENTACTIVECAPTION
201#define COLOR_GRADIENTACTIVECAPTION 27
203#ifndef COLOR_GRADIENTINACTIVECAPTION
204#define COLOR_GRADIENTINACTIVECAPTION 28
207#ifndef SPI_GETFLATMENU
208#define SPI_GETFLATMENU 0x1022
211#define COLOR_MENUBAR 30
213#ifndef COLOR_MENUHILIGHT
214#define COLOR_MENUHILIGHT 29
218#define CS_DROPSHADOW 0x00020000
224#define WS_EX_LAYERED 0x00080000
227#define WM_UNICHAR 0x0109
228#define UNICODE_NOCHAR 0xFFFF
const wchar_t *typedef BOOL
void DeletePen(HPEN hPen)
HICON GetClassIcon(HWND hWnd)
HFONT GetStockFont(int nObject)
HFONT SelectFont(HDC hDC, HFONT hFont)
void SetClassCursor(HWND hWnd, HCURSOR hCursor)
HBRUSH GetStockBrush(int nObject)
HCURSOR GetClassCursor(HWND hWnd)
void SetWindowExStyle(HWND hWnd, DWORD nStyle)
void SetClassIcon(HWND hWnd, HICON hIcon)
void DeleteFont(HFONT hFont)
HPALETTE GetStockPalette(int nObject)
HPEN SelectPen(HDC hDC, HPEN hPen)
BOOL IsMinimized(HWND hWnd)
void SetWindowFont(HWND hWnd, HFONT hFont, BOOL bRedraw)
DWORD GetWindowExStyle(HWND hWnd)
void SetWindowStyle(HWND hWnd, DWORD nStyle)
HFONT GetWindowFont(HWND hWnd)
void DeleteBitmap(HBITMAP hBitmap)
HPEN GetStockPen(int nObject)
void DeleteBrush(HBRUSH hBrush)
HBRUSH GetClassBrush(HWND hWnd)
void DeleteRegion(HRGN hRegion)
BOOL IsMaximized(HWND hWnd)
HBITMAP SelectBitmap(HDC hDC, HBITMAP hBitmap)
HBRUSH SelectBrush(HDC hDC, HBRUSH hBrush)
HINSTANCE GetWindowInstance(HWND hWnd)
void DeletePalette(HPALETTE hPalette)
HBRUSH SetClassBrush(HWND hWnd, HBRUSH hBrush)
DWORD GetWindowStyle(HWND hWnd)