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
eb53c025
Commit
eb53c025
authored
Nov 01, 2002
by
Matthew Davison
Committed by
Alexandre Julliard
Nov 01, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some handle conversions for -DSTRICT.
parent
2339b83e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
colordlg.c
dlls/commdlg/colordlg.c
+3
-3
filedlg.c
dlls/commdlg/filedlg.c
+1
-1
fontdlg.c
dlls/commdlg/fontdlg.c
+7
-7
printdlg.c
dlls/commdlg/printdlg.c
+7
-7
No files found.
dlls/commdlg/colordlg.c
View file @
eb53c025
...
...
@@ -478,7 +478,7 @@ static void CC_PaintTriangle( HWND hDlg, int y)
points
[
2
].
y
=
points
[
0
].
y
-
w
;
points
[
2
].
x
=
points
[
1
].
x
=
points
[
0
].
x
+
w
;
FillRect
(
hDC
,
&
lpp
->
old3angle
,
GetClassLongA
(
hwnd
,
GCL_HBRBACKGROUND
));
FillRect
(
hDC
,
&
lpp
->
old3angle
,
(
HBRUSH
)
GetClassLongA
(
hwnd
,
GCL_HBRBACKGROUND
));
lpp
->
old3angle
.
left
=
points
[
0
].
x
;
lpp
->
old3angle
.
right
=
points
[
1
].
x
+
1
;
lpp
->
old3angle
.
top
=
points
[
2
].
y
-
1
;
...
...
@@ -735,7 +735,7 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
hdc
=
GetDC
(
hwnd
);
GetClientRect
(
hwnd
,
&
rect
);
FillRect
(
hdc
,
&
rect
,
GetClassLongA
(
hwnd
,
GCL_HBRBACKGROUND
));
FillRect
(
hdc
,
&
rect
,
(
HBRUSH
)
GetClassLongA
(
hwnd
,
GCL_HBRBACKGROUND
));
for
(
j
=
0
;
j
<
rows
;
j
++
)
{
for
(
i
=
0
;
i
<
cols
;
i
++
)
...
...
@@ -779,7 +779,7 @@ static void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, COLORREF* lpc
hdc
=
GetDC
(
hwnd
);
if
(
hdc
)
{
FillRect
(
hdc
,
&
rect
,
GetClassLongA
(
hwnd
,
GCL_HBRBACKGROUND
)
);
FillRect
(
hdc
,
&
rect
,
(
HBRUSH
)
GetClassLongA
(
hwnd
,
GCL_HBRBACKGROUND
)
);
for
(
j
=
0
;
j
<
rows
;
j
++
)
{
for
(
i
=
0
;
i
<
cols
;
i
++
)
...
...
dlls/commdlg/filedlg.c
View file @
eb53c025
...
...
@@ -1045,7 +1045,7 @@ void FILEDLG_MapDrawItemStruct(LPDRAWITEMSTRUCT16 lpdis16, LPDRAWITEMSTRUCT lpdi
lpdis
->
itemAction
=
lpdis16
->
itemAction
;
lpdis
->
itemState
=
lpdis16
->
itemState
;
lpdis
->
hwndItem
=
HWND_32
(
lpdis16
->
hwndItem
);
lpdis
->
hDC
=
lpdis16
->
hDC
;
lpdis
->
hDC
=
HDC_32
(
lpdis16
->
hDC
)
;
lpdis
->
rcItem
.
right
=
lpdis16
->
rcItem
.
right
;
lpdis
->
rcItem
.
left
=
lpdis16
->
rcItem
.
left
;
lpdis
->
rcItem
.
top
=
lpdis16
->
rcItem
.
top
;
...
...
dlls/commdlg/fontdlg.c
View file @
eb53c025
...
...
@@ -721,7 +721,7 @@ static LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
/* This font will be deleted by WM_COMMAND */
SendDlgItemMessageA
(
hDlg
,
stc6
,
WM_SETFONT
,
CreateFontA
(
0
,
0
,
1
,
1
,
400
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
),
FALSE
);
(
WPARAM
)
CreateFontA
(
0
,
0
,
1
,
1
,
400
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
),
FALSE
);
if
(
!
(
lpcf
->
Flags
&
CF_SHOWHELP
)
||
!
IsWindow
(
lpcf
->
hwndOwner
))
ShowWindow
(
GetDlgItem
(
hDlg
,
pshHelp
),
SW_HIDE
);
...
...
@@ -962,7 +962,7 @@ static LRESULT CFn_WMCtlColorStatic(HWND hDlg, WPARAM wParam, LPARAM lParam,
if
(
GetDlgCtrlID
(
HWND_32
(
LOWORD
(
lParam
)))
==
stc6
)
{
SetTextColor
((
HDC
)
wParam
,
lpcf
->
rgbColors
);
return
GetStockObject
(
WHITE_BRUSH
);
return
(
LRESULT
)
GetStockObject
(
WHITE_BRUSH
);
}
return
0
;
}
...
...
@@ -1065,9 +1065,9 @@ static LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
hFont
=
CreateFontIndirectA
(
lpxx
);
if
(
hFont
)
{
HFONT
oldFont
=
SendDlgItemMessageA
(
hDlg
,
stc6
,
HFONT
oldFont
=
(
HFONT
)
SendDlgItemMessageA
(
hDlg
,
stc6
,
WM_GETFONT
,
0
,
0
);
SendDlgItemMessageA
(
hDlg
,
stc6
,
WM_SETFONT
,
hFont
,
TRUE
);
SendDlgItemMessageA
(
hDlg
,
stc6
,
WM_SETFONT
,
(
WPARAM
)
hFont
,
TRUE
);
DeleteObject
(
oldFont
);
}
}
...
...
@@ -1109,7 +1109,7 @@ static LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
static
LRESULT
CFn_WMDestroy
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
DeleteObject
(
SendDlgItemMessageA
(
hwnd
,
stc6
,
WM_GETFONT
,
0
,
0
));
DeleteObject
(
(
HFONT
)
SendDlgItemMessageA
(
hwnd
,
stc6
,
WM_GETFONT
,
0
,
0
));
return
TRUE
;
}
...
...
@@ -1177,7 +1177,7 @@ BOOL16 CALLBACK FormatCharDlgProc16(HWND16 hDlg16, UINT16 message,
dis
.
itemAction
=
dis16
->
itemAction
;
dis
.
itemState
=
dis16
->
itemState
;
dis
.
hwndItem
=
HWND_32
(
dis16
->
hwndItem
);
dis
.
hDC
=
dis16
->
hDC
;
dis
.
hDC
=
HDC_32
(
dis16
->
hDC
)
;
dis
.
itemData
=
dis16
->
itemData
;
CONV_RECT16TO32
(
&
dis16
->
rcItem
,
&
dis
.
rcItem
);
res
=
CFn_WMDrawItem
(
hDlg
,
wParam
,
(
LPARAM
)
&
dis
);
...
...
@@ -1185,7 +1185,7 @@ BOOL16 CALLBACK FormatCharDlgProc16(HWND16 hDlg16, UINT16 message,
break
;
case
WM_CTLCOLOR
:
if
(
HIWORD
(
lParam
)
==
CTLCOLOR_STATIC
)
res
=
CFn_WMCtlColorStatic
(
hDlg
,
(
HDC
)
wParam
,
LOWORD
(
lParam
),
lpcf32a
);
res
=
CFn_WMCtlColorStatic
(
hDlg
,
wParam
,
LOWORD
(
lParam
),
lpcf32a
);
break
;
case
WM_COMMAND
:
res
=
CFn_WMCommand
(
hDlg
,
MAKEWPARAM
(
wParam
,
HIWORD
(
lParam
)
),
LOWORD
(
lParam
),
lpcf32a
);
...
...
dlls/commdlg/printdlg.c
View file @
eb53c025
...
...
@@ -2301,15 +2301,15 @@ static BOOL PRINTDLG_CreateDC16(LPPRINTDLG16 lppd)
DEVMODEA
*
pdm
=
GlobalLock16
(
lppd
->
hDevMode
);
if
(
lppd
->
Flags
&
PD_RETURNDC
)
{
lppd
->
hDC
=
CreateDCA
((
char
*
)
pdn
+
pdn
->
wDriverOffset
,
lppd
->
hDC
=
HDC_16
(
CreateDCA
((
char
*
)
pdn
+
pdn
->
wDriverOffset
,
(
char
*
)
pdn
+
pdn
->
wDeviceOffset
,
(
char
*
)
pdn
+
pdn
->
wOutputOffset
,
pdm
);
pdm
)
)
;
}
else
if
(
lppd
->
Flags
&
PD_RETURNIC
)
{
lppd
->
hDC
=
CreateICA
((
char
*
)
pdn
+
pdn
->
wDriverOffset
,
lppd
->
hDC
=
HDC_16
(
CreateICA
((
char
*
)
pdn
+
pdn
->
wDriverOffset
,
(
char
*
)
pdn
+
pdn
->
wDeviceOffset
,
(
char
*
)
pdn
+
pdn
->
wOutputOffset
,
pdm
);
pdm
)
)
;
}
GlobalUnlock16
(
lppd
->
hDevNames
);
GlobalUnlock16
(
lppd
->
hDevMode
);
...
...
@@ -2343,7 +2343,7 @@ BOOL WINAPI PrintDlgA(
{
BOOL
bRet
=
FALSE
;
LPVOID
ptr
;
HINSTANCE
hInst
=
GetWindowLongA
(
lppd
->
hwndOwner
,
GWL_HINSTANCE
);
HINSTANCE
hInst
=
(
HINSTANCE
)
GetWindowLongA
(
lppd
->
hwndOwner
,
GWL_HINSTANCE
);
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
...
...
@@ -2499,7 +2499,7 @@ BOOL WINAPI PrintDlgW(
{
BOOL
bRet
=
FALSE
;
LPVOID
ptr
;
HINSTANCE
hInst
=
GetWindowLongA
(
lppd
->
hwndOwner
,
GWL_HINSTANCE
);
HINSTANCE
hInst
=
(
HINSTANCE
)
GetWindowLongA
(
lppd
->
hwndOwner
,
GWL_HINSTANCE
);
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
...
...
@@ -2666,7 +2666,7 @@ BOOL16 WINAPI PrintDlg16(
)
{
BOOL
bRet
=
FALSE
;
LPVOID
ptr
;
HINSTANCE
hInst
=
GetWindowLongA
(
HWND_32
(
lppd
->
hwndOwner
),
GWL_HINSTANCE
);
HINSTANCE
hInst
=
(
HINSTANCE
)
GetWindowLongA
(
HWND_32
(
lppd
->
hwndOwner
),
GWL_HINSTANCE
);
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
...
...
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