#include <toolsettings.h>
|
VOID | drawTrans (HDC hdc, LPCRECT prc) |
|
VOID | drawRubber (HDC hdc, LPCRECT prc) |
|
VOID | drawBrush (HDC hdc, LPCRECT prc) |
|
VOID | drawLine (HDC hdc, LPCRECT prc) |
|
VOID | drawBox (HDC hdc, LPCRECT prc) |
|
VOID | drawAirBrush (HDC hdc, LPCRECT prc) |
|
VOID | calculateTwoBoxes (CRect &rect1, CRect &rect2) |
|
LRESULT | OnCreate (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnDestroy (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnVScroll (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnPaint (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnLButtonDown (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnNotify (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnToolsModelToolChanged (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnToolsModelSettingsChanged (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
LRESULT | OnToolsModelZoomChanged (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled) |
|
Definition at line 10 of file toolsettings.h.
◆ calculateTwoBoxes()
VOID CToolSettingsWindow::calculateTwoBoxes |
( |
CRect & |
rect1, |
|
|
CRect & |
rect2 |
|
) |
| |
|
private |
Definition at line 337 of file toolsettings.cpp.
338{
342
346
349}
void InflateRect(int x, int y) noexcept
void SetRect(int x1, int y1, int x2, int y2) noexcept
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
Referenced by OnCreate(), OnLButtonDown(), and OnPaint().
◆ DoCreate()
BOOL CToolSettingsWindow::DoCreate |
( |
HWND |
hwndParent | ) |
|
◆ drawAirBrush()
Definition at line 209 of file toolsettings.cpp.
210{
213
215 for (
size_t i = 0;
i < 4; ++
i)
216 {
221 if (bHigh)
222 {
224
225 for (
int k = 0;
k < 3; ++
k)
227 }
228 else
229 {
230 for (
int k = 0;
k < 3; ++
k)
232 }
233 }
234}
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
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)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
DWORD WINAPI GetSysColor(_In_ int)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
#define COLOR_HIGHLIGHTTEXT
Referenced by OnPaint().
◆ drawBox()
Definition at line 241 of file toolsettings.cpp.
242{
245
246 for (
INT iItem = 0; iItem < 3; ++iItem)
247 {
248 CRect& rcItem = rects[iItem];
249
252
254
255 if (iItem <= 1)
256 {
260 else
263 if (iItem == 0)
265 else
271 }
272 else
273 {
276 else
278 }
279 }
280}
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
#define COLOR_APPWORKSPACE
Referenced by OnPaint().
◆ drawBrush()
Definition at line 131 of file toolsettings.cpp.
132{
135
136 for (
INT i = 0;
i < 12;
i++)
137 {
138 RECT rcItem = rects[
i];
140
144 {
147 }
148 else
149 {
151 }
152
154 }
155}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Referenced by OnPaint().
◆ drawLine()
Definition at line 162 of file toolsettings.cpp.
163{
166
167 for (
INT i = 0;
i < 5;
i++)
168 {
169 INT penWidth =
i + 1;
172 rcLine.
top = (rcLine.
top + rcLine.
bottom - penWidth) / 2;
175 {
178 }
179 else
180 {
182 }
183 }
184}
Referenced by OnPaint().
◆ drawRubber()
Definition at line 85 of file toolsettings.cpp.
86{
87 RECT rects[4], rcRubber;
90 for (
INT i = 0;
i < 4;
i++)
91 {
94 {
97 }
98 else
99 {
101 }
102
104 rcRubber.
left = xCenter - radius;
105 rcRubber.
top = yCenter - radius;
106 rcRubber.
right = rcRubber.
left + radius * 2;
107 rcRubber.
bottom = rcRubber.
top + radius * 2;
109 }
110}
Referenced by OnPaint().
◆ drawTrans()
Definition at line 68 of file toolsettings.cpp.
69{
72
78}
GLdouble GLdouble GLdouble GLdouble top
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
Referenced by OnPaint().
◆ OnCreate()
Definition at line 282 of file toolsettings.cpp.
283{
284
289
293
297 return 0;
298}
#define IDI_NONTRANSPARENT
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)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
#define MAKEINTRESOURCEW(i)
◆ OnDestroy()
Definition at line 300 of file toolsettings.cpp.
301{
304 return 0;
305}
BOOL WINAPI DestroyIcon(_In_ HICON)
◆ OnLButtonDown()
Definition at line 404 of file toolsettings.cpp.
405{
407
411
414 {
419 if (iItem != -1)
421 break;
424 if (iItem != -1)
426 break;
429 if (iItem != -1)
430 {
434 }
435 break;
438 if (iItem != -1)
440 break;
444 if (iItem != -1)
446 break;
452 if (iItem != -1)
454
456 if (iItem != -1)
458 break;
463 break;
464 }
465
467 return 0;
468}
HWND WINAPI SetCapture(_In_ HWND hWnd)
HWND WINAPI GetParent(_In_ HWND)
◆ OnNotify()
◆ OnPaint()
Definition at line 351 of file toolsettings.cpp.
352{
355
358
361
364
368 {
373 break;
376 break;
379 break;
382 break;
386 break;
393 break;
398 break;
399 }
401 return 0;
402}
BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
◆ OnToolsModelSettingsChanged()
◆ OnToolsModelToolChanged()
Definition at line 470 of file toolsettings.cpp.
471{
472 Invalidate();
474 return 0;
475}
BOOL ShowWindow(int nCmdShow)
◆ OnToolsModelZoomChanged()
Definition at line 483 of file toolsettings.cpp.
484{
487
489 {
490 tbPos++;
491 tempZoom = tempZoom >> 1;
492 }
493
495 return 0;
496}
Referenced by OnVScroll().
◆ OnVScroll()
Definition at line 307 of file toolsettings.cpp.
308{
311
313
315 if (zoomRate % 10 == 0)
316 strZoom.
Format(
L"%d%%", zoomRate / 10);
317 else
318 strZoom.
Format(
L"%d.%d%%", zoomRate / 10, zoomRate % 10);
319
321
323 return 0;
324}
CCanvasWindow canvasWindow
void __cdecl Format(UINT nFormatID,...)
VOID zoomTo(INT newZoom, LONG left=0, LONG top=0)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
◆ m_hNontranspIcon
HICON CToolSettingsWindow::m_hNontranspIcon |
|
private |
◆ m_hTranspIcon
HICON CToolSettingsWindow::m_hTranspIcon |
|
private |
◆ trackbarZoom
CWindow CToolSettingsWindow::trackbarZoom |
|
private |
The documentation for this class was generated from the following files: