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
0865dc7c
Commit
0865dc7c
authored
Jun 04, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Don't reset window position when reusing the current window.
parent
79af1859
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
winhelp.c
programs/winhlp32/winhelp.c
+18
-15
No files found.
programs/winhlp32/winhelp.c
View file @
0865dc7c
...
...
@@ -712,10 +712,6 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
{
if
(
!
lstrcmpi
(
win
->
info
->
name
,
wpage
->
wininfo
->
name
))
{
POINT
pt
=
{
0
,
0
};
SIZE
sz
=
{
0
,
0
};
DWORD
flags
=
SWP_NOSIZE
|
SWP_NOMOVE
;
if
(
win
->
page
==
wpage
->
page
&&
win
->
info
==
wpage
->
wininfo
)
{
/* see #22979, some hlp files have a macro (run at page opening), which
...
...
@@ -727,19 +723,26 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
WINHELP_DeleteButtons
(
win
);
bReUsed
=
TRUE
;
SetWindowText
(
win
->
hMainWnd
,
WINHELP_GetCaption
(
wpage
));
if
(
wpage
->
wininfo
->
origin
.
x
!=
CW_USEDEFAULT
&&
wpage
->
wininfo
->
origin
.
y
!=
CW_USEDEFAULT
)
{
pt
=
wpage
->
wininfo
->
origin
;
flags
&=
~
SWP_NOSIZE
;
}
if
(
wpage
->
wininfo
->
size
.
cx
!=
CW_USEDEFAULT
&&
wpage
->
wininfo
->
size
.
cy
!=
CW_USEDEFAULT
)
if
(
win
->
info
!=
wpage
->
wininfo
)
{
sz
=
wpage
->
wininfo
->
size
;
flags
&=
~
SWP_NOMOVE
;
POINT
pt
=
{
0
,
0
};
SIZE
sz
=
{
0
,
0
};
DWORD
flags
=
SWP_NOSIZE
|
SWP_NOMOVE
;
if
(
wpage
->
wininfo
->
origin
.
x
!=
CW_USEDEFAULT
&&
wpage
->
wininfo
->
origin
.
y
!=
CW_USEDEFAULT
)
{
pt
=
wpage
->
wininfo
->
origin
;
flags
&=
~
SWP_NOSIZE
;
}
if
(
wpage
->
wininfo
->
size
.
cx
!=
CW_USEDEFAULT
&&
wpage
->
wininfo
->
size
.
cy
!=
CW_USEDEFAULT
)
{
sz
=
wpage
->
wininfo
->
size
;
flags
&=
~
SWP_NOMOVE
;
}
SetWindowPos
(
win
->
hMainWnd
,
HWND_TOP
,
pt
.
x
,
pt
.
y
,
sz
.
cx
,
sz
.
cy
,
flags
);
}
SetWindowPos
(
win
->
hMainWnd
,
HWND_TOP
,
pt
.
x
,
pt
.
y
,
sz
.
cx
,
sz
.
cy
,
flags
);
if
(
wpage
->
page
&&
win
->
page
&&
wpage
->
page
->
file
!=
win
->
page
->
file
)
WINHELP_DeleteBackSet
(
win
);
...
...
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