ReactOS
0.4.16-dev-424-ge4748fe
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
toolsettings.h
Go to the documentation of this file.
1
/*
2
* PROJECT: PAINT for ReactOS
3
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
4
* PURPOSE: Window procedure of the tool settings window
5
* COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
6
*/
7
8
#pragma once
9
10
class
CToolSettingsWindow
:
public
CWindowImpl<CToolSettingsWindow>
11
{
12
public
:
13
DECLARE_WND_CLASS_EX
(
L
"ToolSettings"
,
CS_DBLCLKS
,
COLOR_BTNFACE
)
14
15
BEGIN_MSG_MAP
(
CToolSettingsWindow
)
16
MESSAGE_HANDLER
(
WM_CREATE
,
OnCreate
)
17
MESSAGE_HANDLER
(
WM_VSCROLL
,
OnVScroll
)
18
MESSAGE_HANDLER
(
WM_PAINT
,
OnPaint
)
19
MESSAGE_HANDLER
(
WM_LBUTTONDOWN
,
OnLButtonDown
)
20
MESSAGE_HANDLER
(
WM_NOTIFY
,
OnNotify
)
21
MESSAGE_HANDLER
(
WM_TOOLSMODELTOOLCHANGED
,
OnToolsModelToolChanged
)
22
MESSAGE_HANDLER
(
WM_TOOLSMODELSETTINGSCHANGED
,
OnToolsModelSettingsChanged
)
23
MESSAGE_HANDLER
(
WM_TOOLSMODELZOOMCHANGED
,
OnToolsModelZoomChanged
)
24
MESSAGE_HANDLER
(
WM_DESTROY
,
OnDestroy
)
25
END_MSG_MAP
()
26
27
BOOL
DoCreate
(
HWND
hwndParent
);
28
29
private
:
30
CWindow
trackbarZoom
;
31
HICON
m_hNontranspIcon
;
32
HICON
m_hTranspIcon
;
33
34
VOID
drawTrans
(
HDC
hdc
,
LPCRECT
prc
);
35
VOID
drawRubber
(
HDC
hdc
,
LPCRECT
prc
);
36
VOID
drawBrush
(
HDC
hdc
,
LPCRECT
prc
);
37
VOID
drawLine
(
HDC
hdc
,
LPCRECT
prc
);
38
VOID
drawBox
(
HDC
hdc
,
LPCRECT
prc
);
39
VOID
drawAirBrush
(
HDC
hdc
,
LPCRECT
prc
);
40
VOID
calculateTwoBoxes
(
CRect
& rect1,
CRect
&
rect2
);
41
42
LRESULT
OnCreate
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
43
LRESULT
OnDestroy
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
44
LRESULT
OnVScroll
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
45
LRESULT
OnPaint
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
46
LRESULT
OnLButtonDown
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
47
LRESULT
OnNotify
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
48
LRESULT
OnToolsModelToolChanged
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
49
LRESULT
OnToolsModelSettingsChanged
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
50
LRESULT
OnToolsModelZoomChanged
(
UINT
nMsg,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
& bHandled);
51
};
WM_TOOLSMODELZOOMCHANGED
#define WM_TOOLSMODELZOOMCHANGED
Definition:
precomp.h:51
WM_TOOLSMODELTOOLCHANGED
#define WM_TOOLSMODELTOOLCHANGED
Definition:
precomp.h:49
WM_TOOLSMODELSETTINGSCHANGED
#define WM_TOOLSMODELSETTINGSCHANGED
Definition:
precomp.h:50
CRect
Definition:
atltypes.h:222
CToolSettingsWindow
Definition:
toolsettings.h:11
CToolSettingsWindow::m_hNontranspIcon
HICON m_hNontranspIcon
Definition:
toolsettings.h:31
CToolSettingsWindow::OnCreate
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:282
CToolSettingsWindow::OnDestroy
LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:300
CToolSettingsWindow::calculateTwoBoxes
VOID calculateTwoBoxes(CRect &rect1, CRect &rect2)
Definition:
toolsettings.cpp:337
CToolSettingsWindow::OnPaint
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:351
CToolSettingsWindow::trackbarZoom
CWindow trackbarZoom
Definition:
toolsettings.h:30
CToolSettingsWindow::OnToolsModelToolChanged
LRESULT OnToolsModelToolChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:470
CToolSettingsWindow::OnLButtonDown
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:404
CToolSettingsWindow::drawBrush
VOID drawBrush(HDC hdc, LPCRECT prc)
Definition:
toolsettings.cpp:131
CToolSettingsWindow::drawBox
VOID drawBox(HDC hdc, LPCRECT prc)
Definition:
toolsettings.cpp:241
CToolSettingsWindow::OnToolsModelZoomChanged
LRESULT OnToolsModelZoomChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:483
CToolSettingsWindow::drawLine
VOID drawLine(HDC hdc, LPCRECT prc)
Definition:
toolsettings.cpp:162
CToolSettingsWindow::drawAirBrush
VOID drawAirBrush(HDC hdc, LPCRECT prc)
Definition:
toolsettings.cpp:209
CToolSettingsWindow::drawRubber
VOID drawRubber(HDC hdc, LPCRECT prc)
Definition:
toolsettings.cpp:85
CToolSettingsWindow::DoCreate
BOOL DoCreate(HWND hwndParent)
Definition:
toolsettings.cpp:32
CToolSettingsWindow::drawTrans
VOID drawTrans(HDC hdc, LPCRECT prc)
Definition:
toolsettings.cpp:68
CToolSettingsWindow::OnToolsModelSettingsChanged
LRESULT OnToolsModelSettingsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:477
CToolSettingsWindow::m_hTranspIcon
HICON m_hTranspIcon
Definition:
toolsettings.h:32
CToolSettingsWindow::OnNotify
LRESULT OnNotify(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:326
CToolSettingsWindow::OnVScroll
LRESULT OnVScroll(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Definition:
toolsettings.cpp:307
wParam
WPARAM wParam
Definition:
combotst.c:138
lParam
LPARAM lParam
Definition:
combotst.c:139
hwndParent
static HWND hwndParent
Definition:
cryptui.c:300
rect2
RECT rect2
Definition:
edittest.c:51
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
void
Definition:
nsiface.idl:2307
MESSAGE_HANDLER
#define MESSAGE_HANDLER(msg, func)
Definition:
atlwin.h:1926
BEGIN_MSG_MAP
#define BEGIN_MSG_MAP(theClass)
Definition:
atlwin.h:1898
END_MSG_MAP
#define END_MSG_MAP()
Definition:
atlwin.h:1917
DECLARE_WND_CLASS_EX
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
Definition:
atlwin.h:2004
hdc
HDC hdc
Definition:
main.c:9
HDC
static HDC
Definition:
imagelist.c:88
HICON
static HICON
Definition:
imagelist.c:80
UINT
unsigned int UINT
Definition:
ndis.h:50
prc
_Out_ LPRECT prc
Definition:
ntgdi.h:1658
L
#define L(x)
Definition:
ntvdm.h:50
WM_NOTIFY
#define WM_NOTIFY
Definition:
richedit.h:61
tagRECT
Definition:
windef.h:305
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
WM_PAINT
#define WM_PAINT
Definition:
winuser.h:1623
WM_VSCROLL
#define WM_VSCROLL
Definition:
winuser.h:1747
WM_CREATE
#define WM_CREATE
Definition:
winuser.h:1611
CS_DBLCLKS
#define CS_DBLCLKS
Definition:
winuser.h:651
WM_LBUTTONDOWN
#define WM_LBUTTONDOWN
Definition:
winuser.h:1779
WM_DESTROY
#define WM_DESTROY
Definition:
winuser.h:1612
COLOR_BTNFACE
#define COLOR_BTNFACE
Definition:
winuser.h:931
base
applications
mspaint
toolsettings.h
Generated on Mon Jan 6 2025 06:04:46 for ReactOS by
1.9.6