46#define HFONT_GWL_OFFSET 0
47#define HICON_GWL_OFFSET (sizeof(HFONT))
49#define UISTATE_GWL_OFFSET (HICON_GWL_OFFSET+sizeof(HICON))
50#define STATIC_EXTRA_BYTES (UISTATE_GWL_OFFSET + sizeof(LONG))
83static const WCHAR staticW[] = {
'S',
't',
'a',
't',
'i',
'c',0};
128 WARN(
"hicon != 0, but invalid\n");
161 WARN(
"hBitmap != 0, but it's not a bitmap\n");
196 WARN(
"hEnhMetaFile != 0, but it's not an enhanced metafile\n");
372 ERR(
"Unknown style 0x%02lx\n",
style );
469 const char *nameA = (
const char *)
name;
470 if (nameA && nameA[0] ==
'\xff')
493 const char *nameA = (
const char *)
name;
494 if (nameA && nameA[0] ==
'\xff')
588 FIXME(
"STM_SETIMAGE: Unhandled type %Ix\n",
wParam);
601 case WM_UPDATEUISTATE:
750 if (!
len)
goto no_TextOut;
900 HENHMETAFILE hEnhMetaFile;
static POBJECT_TYPE GetObjectType(IN PCWSTR TypeName)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
static void STATIC_PaintEnhMetafn(HWND hwnd, HDC hdc, DWORD style)
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)
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)
#define IS_INTRESOURCE(x)
BOOL NTAPI NtUserDrawIconEx(HDC hdc, int xLeft, int yTop, HICON hIcon, int cxWidth, int cyWidth, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags, BOOL bMetaHDC, PVOID pDIXData)
BOOL NTAPI NtUserSetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags)
INT NTAPI NtUserInternalGetWindowText(HWND hWnd, LPWSTR lpString, INT nMaxCount)
BOOL NTAPI NtUserEndPaint(HWND hWnd, CONST PAINTSTRUCT *lPs)
HDC NTAPI NtUserBeginPaint(HWND hWnd, PAINTSTRUCT *lPs)
BOOL NTAPI NtUserRedrawWindow(HWND hWnd, CONST RECT *lprcUpdate, HRGN hrgnUpdate, UINT flags)
BOOL NTAPI NtUserSetWindowFNID(HWND hWnd, WORD fnID)
HDC NTAPI NtUserGetDC(HWND hWnd)
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
#define SS_LEFTNOWORDWRAP
_Out_opt_ int _Out_opt_ int * cy
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)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LONG WINAPI SetWindowLongW(_In_ HWND, _In_ int, _In_ LONG)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
BOOL WINAPI AdjustWindowRectEx(_Inout_ LPRECT, _In_ DWORD, _In_ BOOL, _In_ DWORD)
#define COLOR_3DHIGHLIGHT
HBITMAP WINAPI LoadBitmapA(_In_opt_ HINSTANCE, _In_ LPCSTR)
#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)
HICON WINAPI LoadIconA(_In_opt_ HINSTANCE hInstance, _In_ LPCSTR lpIconName)
#define SS_REALSIZECONTROL
BOOL WINAPI IsWindowEnabled(_In_ HWND)
HWND WINAPI GetParent(_In_ HWND)
HANDLE WINAPI LoadImageA(_In_opt_ HINSTANCE hInst, _In_ LPCSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
#define MAKEINTRESOURCEW(i)
HBITMAP WINAPI LoadBitmapW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
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)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
const struct builtin_class_descr STATIC_builtin_class
#define NtUserSetPrivateData(HWND, OFFSET, SIZE, VALUE)
#define NtUserReleaseDC(HWND, HDC)
static __inline BOOL STATIC_update_uistate(HWND hwnd, BOOL unicode)
#define NTUSER_WNDPROC_STATIC
#define NtUserGetPrivateData(HWND, OFFSET, SIZE)
HBRUSH FASTCALL GetControlBrush(PWND pwnd, HDC hdc, UINT ctlType)
static COLORREF color_3ddkshadow
static COLORREF color_3dhighlight
static HFONT get_control_font(HWND hwnd)
static VOID STATIC_InitColours(void)
LRESULT WINAPI StaticWndProc_common(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL unicode)
static HANDLE get_control_icon(HWND hwnd)
LRESULT WINAPI StaticWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static HFONT set_control_font(HWND hwnd, HFONT font)
static HICON STATIC_LoadIconA(HINSTANCE hInstance, LPCSTR name, DWORD style)
static COLORREF color_3dshadow
static HANDLE set_control_icon(HWND hwnd, HANDLE icon)
LRESULT WINAPI StaticWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
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)