Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fc5f6d4b
Commit
fc5f6d4b
authored
Apr 04, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Constify some variables.
parent
0dcf1960
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
27 deletions
+27
-27
cdlg.h
dlls/comdlg32/cdlg.h
+3
-3
colordlg.c
dlls/comdlg32/colordlg.c
+24
-24
No files found.
dlls/comdlg32/cdlg.h
View file @
fc5f6d4b
...
@@ -185,7 +185,7 @@ extern BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType);
...
@@ -185,7 +185,7 @@ extern BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType);
* Do NOT Export to other programs and dlls
* Do NOT Export to other programs and dlls
*/
*/
BOOL
CC_HookCallChk
(
LPCHOOSECOLORW
lpcc
);
BOOL
CC_HookCallChk
(
const
CHOOSECOLORW
*
lpcc
);
int
CC_MouseCheckResultWindow
(
HWND
hDlg
,
LPARAM
lParam
);
int
CC_MouseCheckResultWindow
(
HWND
hDlg
,
LPARAM
lParam
);
LRESULT
CC_WMLButtonDown
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
CC_WMLButtonDown
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
CC_WMLButtonUp
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
CC_WMLButtonUp
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
...
@@ -193,7 +193,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD
...
@@ -193,7 +193,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD
notifyCode
,
HWND
hwndCtl
);
notifyCode
,
HWND
hwndCtl
);
LRESULT
CC_WMMouseMove
(
HWND
hDlg
,
LPARAM
lParam
);
LRESULT
CC_WMMouseMove
(
HWND
hDlg
,
LPARAM
lParam
);
LRESULT
CC_WMPaint
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
CC_WMPaint
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
);
void
CC_SwitchToFullSize
(
HWND
hDlg
,
COLORREF
result
,
LPRECT
lprect
);
void
CC_SwitchToFullSize
(
HWND
hDlg
,
COLORREF
result
,
LP
C
RECT
lprect
);
void
CC_PaintSelectedColor
(
HWND
hDlg
,
COLORREF
cr
);
void
CC_PaintSelectedColor
(
HWND
hDlg
,
COLORREF
cr
);
int
CC_RGBtoHSL
(
char
c
,
int
r
,
int
g
,
int
b
);
int
CC_RGBtoHSL
(
char
c
,
int
r
,
int
g
,
int
b
);
void
CC_PaintCross
(
HWND
hDlg
,
int
x
,
int
y
);
void
CC_PaintCross
(
HWND
hDlg
,
int
x
,
int
y
);
...
@@ -202,7 +202,7 @@ int CC_CheckDigitsInEdit( HWND hwnd, int maxval );
...
@@ -202,7 +202,7 @@ int CC_CheckDigitsInEdit( HWND hwnd, int maxval );
void
CC_EditSetHSL
(
HWND
hDlg
,
int
h
,
int
s
,
int
l
);
void
CC_EditSetHSL
(
HWND
hDlg
,
int
h
,
int
s
,
int
l
);
int
CC_HSLtoRGB
(
char
c
,
int
hue
,
int
sat
,
int
lum
);
int
CC_HSLtoRGB
(
char
c
,
int
hue
,
int
sat
,
int
lum
);
void
CC_EditSetRGB
(
HWND
hDlg
,
COLORREF
cr
);
void
CC_EditSetRGB
(
HWND
hDlg
,
COLORREF
cr
);
void
CC_PaintUserColorArray
(
HWND
hDlg
,
int
rows
,
int
cols
,
COLORREF
*
lpcr
);
void
CC_PaintUserColorArray
(
HWND
hDlg
,
int
rows
,
int
cols
,
const
COLORREF
*
lpcr
);
typedef
struct
typedef
struct
{
{
...
...
dlls/comdlg32/colordlg.c
View file @
fc5f6d4b
...
@@ -88,7 +88,7 @@ typedef struct CCPRIVATE
...
@@ -88,7 +88,7 @@ typedef struct CCPRIVATE
int
capturedGraph
;
/* control mouse captured */
int
capturedGraph
;
/* control mouse captured */
RECT
focusRect
;
/* rectangle last focused item */
RECT
focusRect
;
/* rectangle last focused item */
HWND
hwndFocus
;
/* handle last focused item */
HWND
hwndFocus
;
/* handle last focused item */
}
*
L
CCPRIV
;
}
CCPRIV
,
*
LP
CCPRIV
;
/***********************************************************************
/***********************************************************************
* CC_HSLtoRGB [internal]
* CC_HSLtoRGB [internal]
...
@@ -206,7 +206,7 @@ int CC_RGBtoHSL(char c, int r, int g, int b)
...
@@ -206,7 +206,7 @@ int CC_RGBtoHSL(char c, int r, int g, int b)
/***********************************************************************
/***********************************************************************
* CC_DrawCurrentFocusRect [internal]
* CC_DrawCurrentFocusRect [internal]
*/
*/
static
void
CC_DrawCurrentFocusRect
(
LCCPRIV
lpp
)
static
void
CC_DrawCurrentFocusRect
(
const
CCPRIV
*
lpp
)
{
{
if
(
lpp
->
hwndFocus
)
if
(
lpp
->
hwndFocus
)
{
{
...
@@ -219,7 +219,7 @@ static void CC_DrawCurrentFocusRect( LCCPRIV lpp )
...
@@ -219,7 +219,7 @@ static void CC_DrawCurrentFocusRect( LCCPRIV lpp )
/***********************************************************************
/***********************************************************************
* CC_DrawFocusRect [internal]
* CC_DrawFocusRect [internal]
*/
*/
static
void
CC_DrawFocusRect
(
LCCPRIV
lpp
,
HWND
hwnd
,
int
x
,
int
y
,
int
rows
,
int
cols
)
static
void
CC_DrawFocusRect
(
L
P
CCPRIV
lpp
,
HWND
hwnd
,
int
x
,
int
y
,
int
rows
,
int
cols
)
{
{
RECT
rect
;
RECT
rect
;
int
dx
,
dy
;
int
dx
,
dy
;
...
@@ -248,7 +248,7 @@ static void CC_DrawFocusRect( LCCPRIV lpp, HWND hwnd, int x, int y, int rows, in
...
@@ -248,7 +248,7 @@ static void CC_DrawFocusRect( LCCPRIV lpp, HWND hwnd, int x, int y, int rows, in
* CC_MouseCheckPredefColorArray [internal]
* CC_MouseCheckPredefColorArray [internal]
* returns 1 if one of the predefined colors is clicked
* returns 1 if one of the predefined colors is clicked
*/
*/
static
int
CC_MouseCheckPredefColorArray
(
LCCPRIV
lpp
,
HWND
hDlg
,
int
dlgitem
,
int
rows
,
int
cols
,
static
int
CC_MouseCheckPredefColorArray
(
L
P
CCPRIV
lpp
,
HWND
hDlg
,
int
dlgitem
,
int
rows
,
int
cols
,
LPARAM
lParam
)
LPARAM
lParam
)
{
{
HWND
hwnd
;
HWND
hwnd
;
...
@@ -282,7 +282,7 @@ static int CC_MouseCheckPredefColorArray( LCCPRIV lpp, HWND hDlg, int dlgitem, i
...
@@ -282,7 +282,7 @@ static int CC_MouseCheckPredefColorArray( LCCPRIV lpp, HWND hDlg, int dlgitem, i
* CC_MouseCheckUserColorArray [internal]
* CC_MouseCheckUserColorArray [internal]
* return 1 if the user clicked a color
* return 1 if the user clicked a color
*/
*/
static
int
CC_MouseCheckUserColorArray
(
LCCPRIV
lpp
,
HWND
hDlg
,
int
dlgitem
,
int
rows
,
int
cols
,
static
int
CC_MouseCheckUserColorArray
(
L
P
CCPRIV
lpp
,
HWND
hDlg
,
int
dlgitem
,
int
rows
,
int
cols
,
LPARAM
lParam
)
LPARAM
lParam
)
{
{
HWND
hwnd
;
HWND
hwnd
;
...
@@ -465,7 +465,7 @@ void CC_PaintTriangle( HWND hDlg, int y)
...
@@ -465,7 +465,7 @@ void CC_PaintTriangle( HWND hDlg, int y)
RECT
rect
;
RECT
rect
;
HBRUSH
hbr
;
HBRUSH
hbr
;
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2be
);
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2be
);
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
if
(
IsWindowVisible
(
GetDlgItem
(
hDlg
,
0x2c6
)))
/* if full size */
if
(
IsWindowVisible
(
GetDlgItem
(
hDlg
,
0x2c6
)))
/* if full size */
{
{
...
@@ -505,7 +505,7 @@ void CC_PaintCross( HWND hDlg, int x, int y)
...
@@ -505,7 +505,7 @@ void CC_PaintCross( HWND hDlg, int x, int y)
HDC
hDC
;
HDC
hDC
;
int
w
=
GetDialogBaseUnits
();
int
w
=
GetDialogBaseUnits
();
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2c6
);
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2c6
);
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
RECT
rect
;
RECT
rect
;
POINT
point
,
p
;
POINT
point
,
p
;
HPEN
hPen
;
HPEN
hPen
;
...
@@ -550,7 +550,7 @@ static void CC_PrepareColorGraph( HWND hDlg )
...
@@ -550,7 +550,7 @@ static void CC_PrepareColorGraph( HWND hDlg )
{
{
int
sdif
,
hdif
,
xdif
,
ydif
,
r
,
g
,
b
,
hue
,
sat
;
int
sdif
,
hdif
,
xdif
,
ydif
,
r
,
g
,
b
,
hue
,
sat
;
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2c6
);
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2c6
);
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
HBRUSH
hbrush
;
HBRUSH
hbrush
;
HDC
hdc
;
HDC
hdc
;
RECT
rect
,
client
;
RECT
rect
,
client
;
...
@@ -593,7 +593,7 @@ static void CC_PrepareColorGraph( HWND hDlg )
...
@@ -593,7 +593,7 @@ static void CC_PrepareColorGraph( HWND hDlg )
static
void
CC_PaintColorGraph
(
HWND
hDlg
)
static
void
CC_PaintColorGraph
(
HWND
hDlg
)
{
{
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2c6
);
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2c6
);
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
HDC
hDC
;
HDC
hDC
;
RECT
rect
;
RECT
rect
;
if
(
IsWindowVisible
(
hwnd
))
/* if full size */
if
(
IsWindowVisible
(
hwnd
))
/* if full size */
...
@@ -653,7 +653,7 @@ static void CC_PaintLumBar( HWND hDlg, int hue, int sat )
...
@@ -653,7 +653,7 @@ static void CC_PaintLumBar( HWND hDlg, int hue, int sat )
void
CC_EditSetRGB
(
HWND
hDlg
,
COLORREF
cr
)
void
CC_EditSetRGB
(
HWND
hDlg
,
COLORREF
cr
)
{
{
char
buffer
[
10
];
char
buffer
[
10
];
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
int
r
=
GetRValue
(
cr
);
int
r
=
GetRValue
(
cr
);
int
g
=
GetGValue
(
cr
);
int
g
=
GetGValue
(
cr
);
int
b
=
GetBValue
(
cr
);
int
b
=
GetBValue
(
cr
);
...
@@ -676,7 +676,7 @@ void CC_EditSetRGB( HWND hDlg, COLORREF cr )
...
@@ -676,7 +676,7 @@ void CC_EditSetRGB( HWND hDlg, COLORREF cr )
void
CC_EditSetHSL
(
HWND
hDlg
,
int
h
,
int
s
,
int
l
)
void
CC_EditSetHSL
(
HWND
hDlg
,
int
h
,
int
s
,
int
l
)
{
{
char
buffer
[
10
];
char
buffer
[
10
];
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
if
(
IsWindowVisible
(
GetDlgItem
(
hDlg
,
0x2c6
)
))
/* if full size */
if
(
IsWindowVisible
(
GetDlgItem
(
hDlg
,
0x2c6
)
))
/* if full size */
{
{
...
@@ -695,10 +695,10 @@ void CC_EditSetHSL( HWND hDlg, int h, int s, int l )
...
@@ -695,10 +695,10 @@ void CC_EditSetHSL( HWND hDlg, int h, int s, int l )
/***********************************************************************
/***********************************************************************
* CC_SwitchToFullSize [internal]
* CC_SwitchToFullSize [internal]
*/
*/
void
CC_SwitchToFullSize
(
HWND
hDlg
,
COLORREF
result
,
LPRECT
lprect
)
void
CC_SwitchToFullSize
(
HWND
hDlg
,
COLORREF
result
,
LP
C
RECT
lprect
)
{
{
int
i
;
int
i
;
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
EnableWindow
(
GetDlgItem
(
hDlg
,
0x2cf
),
FALSE
);
EnableWindow
(
GetDlgItem
(
hDlg
,
0x2cf
),
FALSE
);
CC_PrepareColorGraph
(
hDlg
);
CC_PrepareColorGraph
(
hDlg
);
...
@@ -734,7 +734,7 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
...
@@ -734,7 +734,7 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
HDC
hdc
;
HDC
hdc
;
HBRUSH
hBrush
;
HBRUSH
hBrush
;
int
dx
,
dy
,
i
,
j
,
k
;
int
dx
,
dy
,
i
,
j
,
k
;
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
GetClientRect
(
hwnd
,
&
rect
);
GetClientRect
(
hwnd
,
&
rect
);
dx
=
rect
.
right
/
cols
;
dx
=
rect
.
right
/
cols
;
...
@@ -771,14 +771,14 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
...
@@ -771,14 +771,14 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
* CC_PaintUserColorArray [internal]
* CC_PaintUserColorArray [internal]
* Paint the 16 user-selected colors
* Paint the 16 user-selected colors
*/
*/
void
CC_PaintUserColorArray
(
HWND
hDlg
,
int
rows
,
int
cols
,
COLORREF
*
lpcr
)
void
CC_PaintUserColorArray
(
HWND
hDlg
,
int
rows
,
int
cols
,
const
COLORREF
*
lpcr
)
{
{
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2d1
);
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2d1
);
RECT
rect
;
RECT
rect
;
HDC
hdc
;
HDC
hdc
;
HBRUSH
hBrush
;
HBRUSH
hBrush
;
int
dx
,
dy
,
i
,
j
,
k
;
int
dx
,
dy
,
i
,
j
,
k
;
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
GetClientRect
(
hwnd
,
&
rect
);
GetClientRect
(
hwnd
,
&
rect
);
...
@@ -820,7 +820,7 @@ void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, COLORREF* lpcr )
...
@@ -820,7 +820,7 @@ void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, COLORREF* lpcr )
/***********************************************************************
/***********************************************************************
* CC_HookCallChk [internal]
* CC_HookCallChk [internal]
*/
*/
BOOL
CC_HookCallChk
(
LPCHOOSECOLORW
lpcc
)
BOOL
CC_HookCallChk
(
const
CHOOSECOLORW
*
lpcc
)
{
{
if
(
lpcc
)
if
(
lpcc
)
if
(
lpcc
->
Flags
&
CC_ENABLEHOOK
)
if
(
lpcc
->
Flags
&
CC_ENABLEHOOK
)
...
@@ -839,7 +839,7 @@ static LONG CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam )
...
@@ -839,7 +839,7 @@ static LONG CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam )
HWND
hwnd
;
HWND
hwnd
;
RECT
rect
;
RECT
rect
;
POINT
point
;
POINT
point
;
LCCPRIV
lpp
;
L
P
CCPRIV
lpp
;
TRACE
(
"WM_INITDIALOG lParam=%08lX
\n
"
,
lParam
);
TRACE
(
"WM_INITDIALOG lParam=%08lX
\n
"
,
lParam
);
lpp
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
struct
CCPRIVATE
)
);
lpp
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
struct
CCPRIVATE
)
);
...
@@ -946,7 +946,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode,
...
@@ -946,7 +946,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode,
UINT
cokmsg
;
UINT
cokmsg
;
HDC
hdc
;
HDC
hdc
;
COLORREF
*
cr
;
COLORREF
*
cr
;
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
TRACE
(
"CC_WMCommand wParam=%x lParam=%lx
\n
"
,
wParam
,
lParam
);
TRACE
(
"CC_WMCommand wParam=%x lParam=%lx
\n
"
,
wParam
,
lParam
);
switch
(
LOWORD
(
wParam
))
switch
(
LOWORD
(
wParam
))
{
{
...
@@ -1068,7 +1068,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode,
...
@@ -1068,7 +1068,7 @@ LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode,
LRESULT
CC_WMPaint
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
LRESULT
CC_WMPaint
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
PAINTSTRUCT
ps
;
PAINTSTRUCT
ps
;
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
BeginPaint
(
hDlg
,
&
ps
);
BeginPaint
(
hDlg
,
&
ps
);
/* we have to paint dialog children except text and buttons */
/* we have to paint dialog children except text and buttons */
...
@@ -1089,7 +1089,7 @@ LRESULT CC_WMPaint( HWND hDlg, WPARAM wParam, LPARAM lParam )
...
@@ -1089,7 +1089,7 @@ LRESULT CC_WMPaint( HWND hDlg, WPARAM wParam, LPARAM lParam )
*/
*/
LRESULT
CC_WMLButtonUp
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
LRESULT
CC_WMLButtonUp
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
if
(
lpp
->
capturedGraph
)
if
(
lpp
->
capturedGraph
)
{
{
lpp
->
capturedGraph
=
0
;
lpp
->
capturedGraph
=
0
;
...
@@ -1105,7 +1105,7 @@ LRESULT CC_WMLButtonUp( HWND hDlg, WPARAM wParam, LPARAM lParam )
...
@@ -1105,7 +1105,7 @@ LRESULT CC_WMLButtonUp( HWND hDlg, WPARAM wParam, LPARAM lParam )
*/
*/
LRESULT
CC_WMMouseMove
(
HWND
hDlg
,
LPARAM
lParam
)
LRESULT
CC_WMMouseMove
(
HWND
hDlg
,
LPARAM
lParam
)
{
{
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
int
r
,
g
,
b
;
int
r
,
g
,
b
;
if
(
lpp
->
capturedGraph
)
if
(
lpp
->
capturedGraph
)
...
@@ -1143,7 +1143,7 @@ LRESULT CC_WMMouseMove( HWND hDlg, LPARAM lParam )
...
@@ -1143,7 +1143,7 @@ LRESULT CC_WMMouseMove( HWND hDlg, LPARAM lParam )
*/
*/
LRESULT
CC_WMLButtonDown
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
LRESULT
CC_WMLButtonDown
(
HWND
hDlg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
int
r
,
g
,
b
,
i
;
int
r
,
g
,
b
,
i
;
i
=
0
;
i
=
0
;
...
@@ -1202,7 +1202,7 @@ static INT_PTR CALLBACK ColorDlgProc( HWND hDlg, UINT message,
...
@@ -1202,7 +1202,7 @@ static INT_PTR CALLBACK ColorDlgProc( HWND hDlg, UINT message,
{
{
int
res
;
int
res
;
L
CCPRIV
lpp
=
(
L
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
L
PCCPRIV
lpp
=
(
LP
CCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
if
(
message
!=
WM_INITDIALOG
)
if
(
message
!=
WM_INITDIALOG
)
{
{
if
(
!
lpp
)
if
(
!
lpp
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment