83 #define RBInnerSoft RBInnerNormal 84 #define RBOuterSoft RBOuterNormal 123 signed char InnerI, OuterI;
124 HPEN InnerPen, OuterPen;
141 spx = spy = epx = epy = 0;
200 spx = epx + SmallDiam;
202 spy = epy - SmallDiam;
209 spx = epx + SmallDiam;
211 spy = epy + SmallDiam;
226 epx = spx + SmallDiam;
228 epy = spy - SmallDiam;
248 Points[0].
x = spx-add;
250 Points[1].
x = rc->
left;
251 Points[1].
y = rc->
top;
253 Points[2].
y = epy-1-add;
254 Points[3] = Points[2];
260 Points[0].
x = spx-add;
262 Points[1].
x = rc->
left;
265 Points[2].
y = epy+1+add;
266 Points[3] = Points[2];
276 Points[0].
y = epy+1+add;
277 Points[1].
x = rc->
right-1;
278 Points[1].
y = rc->
top+add;
279 Points[2].
x = rc->
right-1;
281 Points[3].
x = spx+add;
288 Points[0].
x = epx+1+add;
290 Points[1].
x = rc->
right-1;
291 Points[1].
y = rc->
top;
292 Points[2].
x = rc->
right-1;
293 Points[2].
y = rc->
bottom-1-add;
295 Points[3].
y = spy-add;
305 Points[1].
x = rc->
right-1;
306 Points[1].
y = rc->
top;
307 Points[2].
x = rc->
right-1;
308 Points[2].
y = rc->
bottom-1-add;
309 Points[3].
x = spx+add;
310 Points[3].
y = spy-add;
320 Points[1].
x = rc->
left;
321 Points[1].
y = rc->
top+add;
322 Points[2].
x = epx-1-add;
323 Points[2].
y = epy+1+add;
324 Points[3] = Points[2];
431 signed char LTInnerI, LTOuterI;
432 signed char RBInnerI, RBOuterI;
433 HBRUSH lti_brush, lto_brush, rbi_brush, rbo_brush;
435 int lbi_offset = 0, lti_offset = 0, rti_offset = 0, rbi_offset = 0;
576 dst->bottom =
dst->top + SmallDiam;
581 dst->right =
dst->left + SmallDiam;
662 TCHAR OutRight, OutLeft, InRight, InLeft, Center;
670 X =
r->left + (
Width - Shorter) / 2;
671 Y =
r->top + (
Height - Shorter) / 2;
780 switch(uState & 0x1f)
796 ERR(
"Invalid button state=0x%04x\n", uState);
829 ERR(
"Invalid caption; flags=0x%04x\n",
uFlags);
932 ERR(
"Invalid scroll; flags=0x%04x\n",
uFlags);
1009 ERR(
"Invalid menu; flags=0x%04x\n",
uFlags);
1065 HBRUSH OldBrush =
NULL;
1080 if ((nCount == -1) && (! lpOutputFunc))
1093 if (! nWidth || ! nHeight)
1105 if (! nWidth) nWidth =
s.cx;
1106 if (! nHeight) nHeight =
s.cy;
1129 success = lpOutputFunc(MemDC, lpData, nCount);
1131 if ((nCount == -1) && (!
success))
1148 PatBlt(MemDC, 0, 0, nWidth, nHeight, 0x000A0329);
1238 HBRUSH hbsave, hbrtmp = 0;
1300 ERR(
"Invalid opcode: %u\n", opcode);
1367 tmp =
PatBlt(memdc, 0, 0,
cx,
cy, 0x00FA0089);
1461 ERR(
"Got exception in hooked DrawFrameControl!\n");
1487 int nCount,
int X,
int Y,
int nWidth,
int nHeight)
1497 int nCount,
int X,
int Y,
int nWidth,
int nHeight)
1539 FLASHWINFO FlashWndInfo;
1541 FlashWndInfo.cbSize =
sizeof(FLASHWINFO);
1542 FlashWndInfo.hwnd =
hWnd;
1543 FlashWndInfo.dwFlags = !
bInvert ? 0 : (FLASHW_TRAY | FLASHW_CAPTION);
1544 FlashWndInfo.uCount = 1;
1545 FlashWndInfo.dwTimeout = 0;
1557 HBRUSH prevhbr =
NULL;
1563 if (hbr <= (HBRUSH)(COLOR_MENUBAR + 1))
1567 if (prevhbr ==
NULL)
1615 return IntDrawState(
hDC, hBrush, lpOutputFunc, lData, wData,
x,
y,
cx,
cy, fuFlags,
FALSE);
1625 return IntDrawState(
hDC, hBrush, lpOutputFunc, lData, wData,
x,
y,
cx,
cy, fuFlags,
TRUE);
HGDIOBJ WINAPI GetStockObject(_In_ int)
static BOOL PAINTING_DrawStateJam(HDC hdc, UINT opcode, DRAWSTATEPROC func, LPARAM lp, WPARAM wp, LPRECT rc, UINT dtflags, BOOL unicode)
DWORD WINAPI SetLayout(_In_ HDC hdc, _In_ DWORD dwLayout)
BOOL WINAPI GrayStringA(HDC hDC, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc, LPARAM lpData, int nCount, int X, int Y, int nWidth, int nHeight)
#define BF_DIAGONAL_ENDTOPLEFT
BOOL FASTCALL EndUserApiHook(VOID)
GLint GLint GLsizei width
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define COLOR_WINDOWFRAME
_In_ int _Inout_ LPRECT lprc
BOOL FASTCALL UITOOLS95_DFC_ButtonPush(HDC dc, LPRECT r, UINT uFlags)
static const signed char LTInnerSoft[]
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
BOOL FASTCALL IntDrawDiagEdge(HDC hdc, LPRECT rc, UINT uType, UINT uFlags)
#define BF_DIAGONAL_ENDTOPRIGHT
GLdouble GLdouble GLdouble r
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
WINE_DEFAULT_DEBUG_CHANNEL(user32)
int FASTCALL UITOOLS_MakeSquareRect(LPRECT src, LPRECT dst)
#define DFCS_BUTTON3STATE
BOOL FASTCALL UITOOLS95_DFC_ButtonCheckRadio(HDC dc, LPRECT r, UINT uFlags, BOOL Radio)
static const signed char LTRBInnerMono[]
BOOL WINAPI OffsetViewportOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
BOOL(CALLBACK * DRAWSTATEPROC)(HDC, LPARAM, WPARAM, int, int)
BOOL WINAPI RealDrawFrameControl(HDC hDC, LPRECT rc, UINT uType, UINT uState)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
#define COLOR_BTNHIGHLIGHT
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
GLint GLint GLint GLint GLint x
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
_In_ HFONT _Out_ PUINT Height
static const signed char LTOuterNormal[]
INT WINAPI FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
DWORD WINAPI GetSysColor(_In_ int)
static const signed char LTInnerNormal[]
BOOL FASTCALL UITOOLS95_DrawFrameScroll(HDC dc, LPRECT r, UINT uFlags)
BOOL WINAPI GrayStringW(HDC hDC, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc, LPARAM lpData, int nCount, int X, int Y, int nWidth, int nHeight)
static const signed char LTRBOuterFlat[]
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
BOOL WINAPI DrawStateA(HDC hDC, HBRUSH hBrush, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT fuFlags)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetDCBrushColor(_In_ HDC hdc, _In_ COLORREF crColor)
BOOL(CALLBACK * GRAYSTRINGPROC)(HDC, LPARAM, int)
BOOL FASTCALL UITOOLS95_DrawFrameCaption(HDC dc, LPRECT r, UINT uFlags)
BOOL FASTCALL UITOOLS95_DrawFrameButton(HDC hdc, LPRECT rc, UINT uState)
static const signed char RBOuterNormal[]
#define BF_DIAGONAL_ENDBOTTOMLEFT
static const signed char LTOuterSoft[]
_Out_opt_ int _Out_opt_ int * cy
COLORREF WINAPI GetTextColor(_In_ HDC)
BOOL WINAPI IsRectEmpty(_In_ LPCRECT)
BOOL WINAPI InvertRect(HDC hDC, CONST RECT *lprc)
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
#define NONANTIALIASED_QUALITY
BOOL WINAPI DrawFrameControl(HDC hDC, LPRECT rc, UINT uType, UINT uState)
#define DFCS_CAPTIONRESTORE
#define DFCS_MENUARROWDOWN
BOOL FASTCALL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
BOOL WINAPI DrawStateW(HDC hDC, HBRUSH hBrush, DRAWSTATEPROC lpOutputFunc, LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT fuFlags)
BOOLEAN Symbol(PVRET pvr)
static BOOL get_icon_size(HICON handle, SIZE *size)
DRAWFRAMECONTROL DrawFrameControl
void FASTCALL UITOOLS_DrawCheckedRect(HDC dc, LPRECT rect)
static const signed char RBInnerNormal[]
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
int WINAPI GetBkMode(_In_ HDC)
#define EXCEPTION_EXECUTE_HANDLER
#define DFCS_SCROLLSIZEGRIP
#define DFCS_CAPTIONCLOSE
#define BF_DIAGONAL_ENDBOTTOMRIGHT
void fill_rect(int x, int y, int cx, int cy, int colour, int opcode=0xc)
#define success(from, fromstr, to, tostr)
BOOL WINAPI FlashWindow(HWND hWnd, BOOL bInvert)
static BOOL IntDrawState(HDC hdc, HBRUSH hbr, DRAWSTATEPROC func, LPARAM lp, WPARAM wp, INT x, INT y, INT cx, INT cy, UINT flags, BOOL unicode)
static const signed char LTRBOuterMono[]
#define DFCS_SCROLLSIZEGRIPRIGHT
BOOL NTAPI NtUserFlashWindowEx(IN PFLASHWINFO pfwi)
BOOL WINAPI GetTextExtentPoint32A(_In_ HDC hdc, _In_reads_(c) LPCSTR lpString, _In_ int c, _Out_ LPSIZE psizl)
int WINAPI GetMapMode(_In_ HDC)
#define DFCS_MENUARROWRIGHT
BOOL WINAPI TextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_reads_(c) LPCWSTR lpString, _In_ int c)
BOOL WINAPI DrawEdge(HDC hDC, LPRECT rc, UINT edge, UINT flags)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
INT WINAPI DrawTextA(HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
DWORD WINAPI GetLayout(_In_ HDC hdc)
int WINAPI lstrlenA(LPCSTR lpString)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOL WINAPI DeleteDC(_In_ HDC)
BOOL WINAPI Ellipse(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI DrawFocusRect(HDC hdc, CONST RECT *rect)
BOOL NTAPI NtUserSystemParametersInfo(UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
static __inline void LoadUserApiHook()
BOOL FASTCALL BeginIfHookedUserApiHook(VOID)
#define DFCS_SCROLLCOMBOBOX
#define CreateFontIndirect
static const signed char LTRBInnerFlat[]
GLint GLint GLint GLint GLint GLint y
BOOL WINAPI TextOutA(_In_ HDC hdc, _In_ int x, _In_ int y, _In_reads_(c) LPCSTR lpString, _In_ int c)
HBRUSH WINAPI GetSysColorBrush(int nIndex)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
WCHAR lfFaceName[LF_FACESIZE]
BOOL WINAPI IntGrayString(HDC hDC, HBRUSH hBrush, GRAYSTRINGPROC lpOutputFunc, LPARAM lpData, int nCount, int X, int Y, int nWidth, int nHeight, BOOL unicode)
char * cleanup(char *str)
#define _SEH2_EXCEPT(...)
COLORREF WINAPI SetDCPenColor(_In_ HDC hdc, _In_ COLORREF crColor)
#define DFCS_BUTTONRADIOMASK
BOOL FASTCALL IntDrawRectEdge(HDC hdc, LPRECT rc, UINT uType, UINT uFlags)
#define DFCS_BUTTONRADIOIMAGE
HGDIOBJ WINAPI GetCurrentObject(_In_ HDC, _In_ UINT)
BOOL WINAPI GetTextExtentPoint32W(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE psizl)
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
INT WINAPI FrameRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)