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
1019c2fe
Commit
1019c2fe
authored
Oct 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Fix incorrect use of the ScreenToClient function.
parent
7e7b2a3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
main.c
dlls/cryptui/main.c
+3
-9
No files found.
dlls/cryptui/main.c
View file @
1019c2fe
...
...
@@ -4284,7 +4284,6 @@ static BOOL init_hierarchy_page(PCCRYPTUI_VIEWCERTIFICATE_STRUCTW pCertViewInfo,
static
int
CALLBACK
cert_prop_sheet_proc
(
HWND
hwnd
,
UINT
msg
,
LPARAM
lp
)
{
RECT
rc
;
POINT
topLeft
;
TRACE
(
"(%p, %08x, %08lx)
\n
"
,
hwnd
,
msg
,
lp
);
...
...
@@ -4293,17 +4292,12 @@ static int CALLBACK cert_prop_sheet_proc(HWND hwnd, UINT msg, LPARAM lp)
case
PSCB_INITIALIZED
:
/* Get cancel button's position.. */
GetWindowRect
(
GetDlgItem
(
hwnd
,
IDCANCEL
),
&
rc
);
topLeft
.
x
=
rc
.
left
;
topLeft
.
y
=
rc
.
top
;
ScreenToClient
(
hwnd
,
&
topLeft
);
MapWindowPoints
(
0
,
hwnd
,
(
POINT
*
)
&
rc
,
2
);
/* hide the cancel button.. */
ShowWindow
(
GetDlgItem
(
hwnd
,
IDCANCEL
),
FALSE
);
/* get the OK button's size.. */
GetWindowRect
(
GetDlgItem
(
hwnd
,
IDOK
),
&
rc
);
/* and move the OK button to the cancel button's original position. */
MoveWindow
(
GetDlgItem
(
hwnd
,
IDOK
),
topLeft
.
x
,
topLeft
.
y
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
FALSE
);
GetWindowRect
(
GetDlgItem
(
hwnd
,
IDOK
),
&
rc
);
SetWindowPos
(
GetDlgItem
(
hwnd
,
IDOK
),
0
,
rc
.
left
,
rc
.
top
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
break
;
}
return
0
;
...
...
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