54#define HFONT_GWL_OFFSET 0
55#define HICON_GWL_OFFSET (sizeof(HFONT))
56#define STATIC_EXTRA_BYTES (HICON_GWL_OFFSET + sizeof(HICON))
131 WARN(
"hicon != 0, but invalid\n");
166 WARN(
"hBitmap != 0, but it's not a bitmap\n");
202 WARN(
"hEnhMetaFile != 0, but it's not an enhanced metafile\n");
335 ERR(
"Unknown style 0x%02x\n",
style );
491 FIXME(
"STM_SETIMAGE: Unhandled type %lx\n",
wParam);
621 if (!
len)
goto no_TextOut;
752 rcClient.
left = (rcClient.
right - rcClient.
left)/2 - bm.bmWidth/2;
753 rcClient.
top = (rcClient.
bottom - rcClient.
top)/2 - bm.bmHeight/2;
754 rcClient.
right = rcClient.
left + bm.bmWidth;
755 rcClient.
bottom = rcClient.
top + bm.bmHeight;
759 0, 0, bm.bmWidth, bm.bmHeight,
SRCCOPY);
767 HENHMETAFILE hEnhMetaFile;
807 memset(&wndClass, 0,
sizeof(wndClass));
819void STATIC_Unregister(
void)
static POBJECT_TYPE GetObjectType(IN PCWSTR TypeName)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
VOID COMCTL32_RefreshSysColors(void) DECLSPEC_HIDDEN
COMCTL32_SysColor comctl32_color
static void STATIC_PaintEnhMetafn(HWND hwnd, HDC hdc, DWORD style)
static LRESULT CALLBACK STATIC_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static HBRUSH STATIC_SendWmCtlColorStatic(HWND hwnd, HDC hdc)
void(* pfPaint)(HWND hwnd, HDC hdc, DWORD style)
static BOOL CALLBACK STATIC_DrawTextCallback(HDC hdc, LPARAM lp, WPARAM wp, int cx, int cy)
static HBITMAP STATIC_SetBitmap(HWND hwnd, HBITMAP hBitmap, DWORD style)
static HICON STATIC_LoadIconW(HINSTANCE hInstance, LPCWSTR name, DWORD style)
static void STATIC_PaintOwnerDrawfn(HWND hwnd, HDC hdc, DWORD style)
static HICON STATIC_SetIcon(HWND hwnd, HICON hicon, DWORD style)
static void STATIC_PaintTextfn(HWND hwnd, HDC hdc, DWORD style)
static BOOL get_icon_size(HICON handle, SIZE *size)
void STATIC_Register(void)
static BOOL hasTextStyle(DWORD style)
static void STATIC_PaintRectfn(HWND hwnd, HDC hdc, DWORD style)
static HANDLE STATIC_GetImage(HWND hwnd, WPARAM wParam, DWORD style)
static void STATIC_PaintBitmapfn(HWND hwnd, HDC hdc, DWORD style)
static void STATIC_PaintIconfn(HWND hwnd, HDC hdc, DWORD style)
static VOID STATIC_TryPaintFcn(HWND hwnd, LONG full_style)
#define STATIC_EXTRA_BYTES
static void STATIC_PaintEtchedfn(HWND hwnd, HDC hdc, DWORD style)
static const pfPaint staticPaintFunc[SS_TYPEMASK+1]
static HENHMETAFILE STATIC_SetEnhMetaFile(HWND hwnd, HENHMETAFILE hEnhMetaFile, DWORD style)
#define HeapFree(x, y, z)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
#define SS_LEFTNOWORDWRAP
_Out_opt_ int _Out_opt_ int * cy
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI StretchBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
BOOL WINAPI ExtTextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_ UINT options, _In_opt_ const RECT *lprect, _In_reads_opt_(c) LPCWSTR lpString, _In_ UINT c, _In_reads_opt_(c) const INT *lpDx)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI DeleteDC(_In_ HDC)
int WINAPI SelectClipRgn(_In_ HDC, _In_opt_ HRGN)
BOOL WINAPI PlayEnhMetaFile(_In_ HDC, _In_ HENHMETAFILE, _In_ LPCRECT)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI IsWindow(_In_opt_ HWND)
int WINAPI FrameRect(_In_ HDC, _In_ LPCRECT, _In_ HBRUSH)
#define WM_CTLCOLORSTATIC
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
#define GetWindowLongPtrW
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
BOOL WINAPI IsRectEmpty(_In_ LPCRECT)
#define WM_SYSCOLORCHANGE
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define WM_NCLBUTTONDBLCLK
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define IMAGE_ENHMETAFILE
BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
HDC WINAPI GetDC(_In_opt_ HWND)
#define SS_REALSIZECONTROL
BOOL WINAPI IsWindowEnabled(_In_ HWND)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
INT WINAPI InternalGetWindowText(_In_ HWND hWnd, _Out_writes_to_(cchMaxCount, return+1) LPWSTR pString, _In_ int cchMaxCount)
#define SetWindowLongPtrW
BOOL WINAPI DrawStateW(_In_ HDC, _In_opt_ HBRUSH, _In_opt_ DRAWSTATEPROC, _In_ LPARAM, _In_ WPARAM, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI IsWindowVisible(_In_ HWND)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)