12#define X_TOOLSETTINGS 0
13#define Y_TOOLSETTINGS (CY_TOOLBAR + 3)
14#define CX_TOOLSETTINGS CX_TOOLBAR
15#define CY_TOOLSETTINGS 140
17#define CX_TRANS_ICON 40
18#define CY_TRANS_ICON 30
22#define MAX_ZOOM_TRACK 6
23#define MIN_ZOOM_TRACK 0
24#define DEFAULT_ZOOM_TRACK 3
34 RECT toolSettingsWindowPos =
46 for (
INT i = 0, iRow = 0; iRow < cRows; ++iRow)
48 for (
INT iColumn = 0; iColumn < cColumns; ++iColumn)
87 RECT rects[4], rcRubber;
90 for (
INT i = 0;
i < 4;
i++)
104 rcRubber.
left = xCenter - radius;
105 rcRubber.
top = yCenter - radius;
106 rcRubber.
right = rcRubber.
left + radius * 2;
107 rcRubber.
bottom = rcRubber.
top + radius * 2;
136 for (
INT i = 0;
i < 12;
i++)
138 RECT rcItem = rects[
i];
167 for (
INT i = 0;
i < 5;
i++)
169 INT penWidth =
i + 1;
172 rcLine.
top = (rcLine.
top + rcLine.
bottom - penWidth) / 2;
190 rects[0] = rects[1] = rects[2] = rects[3] = *
prc;
200 for (
INT i = 0;
i < 4; ++
i)
215 for (
size_t i = 0;
i < 4; ++
i)
225 for (
int k = 0;
k < 3; ++
k)
230 for (
int k = 0;
k < 3; ++
k)
246 for (
INT iItem = 0; iItem < 3; ++iItem)
248 CRect& rcItem = rects[iItem];
315 if (zoomRate % 10 == 0)
316 strZoom.
Format(
L"%d%%", zoomRate / 10);
318 strZoom.
Format(
L"%d.%d%%", zoomRate / 10, zoomRate % 10);
491 tempZoom = tempZoom >> 1;
CToolBox toolBoxContainer
#define IDI_NONTRANSPARENT
CCanvasWindow canvasWindow
void __cdecl Format(UINT nFormatID,...)
HWND Create(LPCTSTR lpstrWndClass, HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
BOOL ShowWindow(int nCmdShow)
VOID zoomTo(INT newZoom, LONG left=0, LONG top=0)
void InflateRect(int x, int y) noexcept
void SetRect(int x1, int y1, int x2, int y2) noexcept
void Airbrush(HDC hdc, LONG x, LONG y, COLORREF color, LONG r)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble GLdouble top
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
void __cdecl srand(_In_ unsigned int _Seed)
_Out_opt_ int _Out_opt_ int * cy
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
HWND WINAPI SetCapture(_In_ HWND hWnd)
DWORD WINAPI GetSysColor(_In_ int)
HBRUSH WINAPI GetSysColorBrush(_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 PtInRect(_In_ LPCRECT, _In_ POINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
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)
#define COLOR_APPWORKSPACE
#define COLOR_HIGHLIGHTTEXT
HWND WINAPI GetParent(_In_ HWND)
#define MAKEINTRESOURCEW(i)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI DestroyIcon(_In_ HICON)