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
9d92b761
Commit
9d92b761
authored
Apr 23, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Create the shadow window also for popups handled by RichEdit.
parent
b9848a75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
winhelp.c
programs/winhelp/winhelp.c
+15
-2
No files found.
programs/winhelp/winhelp.c
View file @
9d92b761
...
...
@@ -686,6 +686,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
if
(
bPopup
&&
use_richedit
)
{
DWORD
mask
=
SendMessage
(
hTextWnd
,
EM_GETEVENTMASK
,
0
,
0
);
RECT
rect
;
WINHELP_SetupText
(
hTextWnd
,
win
,
wpage
->
relative
);
...
...
@@ -694,6 +695,17 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
SendMessage
(
hTextWnd
,
EM_SETEVENTMASK
,
0
,
mask
|
ENM_REQUESTRESIZE
);
SendMessage
(
hTextWnd
,
EM_REQUESTRESIZE
,
0
,
0
);
SendMessage
(
hTextWnd
,
EM_SETEVENTMASK
,
0
,
mask
);
GetWindowRect
(
win
->
hMainWnd
,
&
rect
);
win
->
hShadowWnd
=
CreateWindowEx
(
WS_EX_TOOLWINDOW
,
SHADOW_WIN_CLASS_NAME
,
""
,
WS_POPUP
|
WS_VISIBLE
,
rect
.
left
+
SHADOW_DX
,
rect
.
top
+
SHADOW_DY
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
Globals
.
active_win
->
hMainWnd
,
0
,
Globals
.
hInstance
,
NULL
);
SetWindowPos
(
win
->
hMainWnd
,
win
->
hShadowWnd
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
}
else
{
...
...
@@ -1541,7 +1553,7 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
static
LRESULT
CALLBACK
WINHELP_ShadowWndProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
WINHELP_CheckPopup
(
hWnd
,
msg
,
wParam
,
lParam
,
NULL
))
return
0
;
return
DefWindowProc
(
hWnd
,
msg
,
wParam
,
lParam
);
return
WINHELP_CheckPopup
(
hWnd
,
msg
,
wParam
,
lParam
,
NULL
)
?
0L
:
DefWindowProc
(
hWnd
,
msg
,
wParam
,
lParam
);
}
/***********************************************************************
...
...
@@ -1984,7 +1996,8 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
break
;
case
WM_ACTIVATE
:
if
(
wParam
!=
WA_INACTIVE
||
(
HWND
)
lParam
==
Globals
.
active_win
->
hMainWnd
||
(
HWND
)
lParam
==
Globals
.
active_popup
->
hMainWnd
)
(
HWND
)
lParam
==
Globals
.
active_popup
->
hMainWnd
||
GetWindow
((
HWND
)
lParam
,
GW_OWNER
)
==
Globals
.
active_win
->
hMainWnd
)
break
;
case
WM_COMMAND
:
if
(
use_richedit
)
break
;
...
...
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