#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 (RECT &rect1, RECT &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 | 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 11 of file toolsettings.h.
◆ calculateTwoBoxes()
VOID CToolSettingsWindow::calculateTwoBoxes |
( |
RECT & |
rect1, |
|
|
RECT & |
rect2 |
|
) |
| |
|
private |
Definition at line 291 of file toolsettings.cpp.
292{
296
300
303}
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
Referenced by OnLButtonDown(), and OnPaint().
◆ DoCreate()
BOOL CToolSettingsWindow::DoCreate |
( |
HWND |
hwndParent | ) |
|
◆ drawAirBrush()
Definition at line 190 of file toolsettings.cpp.
191{
194
196 for (
size_t i = 0;
i < 4; ++
i)
197 {
202 if (bHigh)
203 {
206 }
207 else
208 {
210 }
211 }
212}
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 219 of file toolsettings.cpp.
220{
223
224 for (
INT iItem = 0; iItem < 3; ++iItem)
225 {
226 RECT& rcItem = rects[iItem];
227
230
232
233 if (iItem <= 1)
234 {
238 else
241 if (iItem == 0)
243 else
249 }
250 else
251 {
254 else
256 }
257 }
258}
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()
◆ drawLine()
Definition at line 143 of file toolsettings.cpp.
144{
147
148 for (
INT i = 0;
i < 5;
i++)
149 {
150 INT penWidth =
i + 1;
151 RECT rcLine = rects[
i];
153 rcLine.
top = (rcLine.
top + rcLine.
bottom - penWidth) / 2;
156 {
159 }
160 else
161 {
163 }
164 }
165}
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 67 of file toolsettings.cpp.
68{
71
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 260 of file toolsettings.cpp.
261{
262
267
268 RECT trackbarZoomPos = {1, 1, 1 + 40, 1 + 64};
272 return 0;
273}
#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)
◆ OnDestroy()
Definition at line 275 of file toolsettings.cpp.
276{
279 return 0;
280}
BOOL WINAPI DestroyIcon(_In_ HICON)
◆ OnLButtonDown()
Definition at line 360 of file toolsettings.cpp.
361{
363
367
370 {
375 if (iItem != -1)
377 break;
380 if (iItem != -1)
382 break;
385 if (iItem != -1)
387 break;
390 if (iItem != -1)
392 break;
396 if (iItem != -1)
398 break;
404 if (iItem != -1)
406
408 if (iItem != -1)
410 break;
415 break;
416 }
417
419 return 0;
420}
HWND WINAPI SetCapture(_In_ HWND hWnd)
HWND WINAPI GetParent(_In_ HWND)
◆ OnPaint()
Definition at line 305 of file toolsettings.cpp.
306{
309
312
315 else
317
320
324 {
329 break;
332 break;
335 break;
338 break;
342 break;
349 break;
354 break;
355 }
357 return 0;
358}
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 422 of file toolsettings.cpp.
423{
424 Invalidate();
426 return 0;
427}
BOOL ShowWindow(int nCmdShow)
◆ OnToolsModelZoomChanged()
Definition at line 435 of file toolsettings.cpp.
436{
437 int tbPos = 0;
439
441 {
442 tbPos++;
443 tempZoom = tempZoom >> 1;
444 }
446 return 0;
447}
Referenced by OnVScroll().
◆ OnVScroll()
Definition at line 282 of file toolsettings.cpp.
283{
285 {
287 }
288 return 0;
289}
BOOL zoomTo(int newZoom, int mouseX, int mouseY)
◆ 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: