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
2b12e89d
Commit
2b12e89d
authored
Mar 31, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Implement MACRO_HelpOnTop() and thus the corresponding menu.
parent
7a569851
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
macro.c
programs/winhlp32/macro.c
+23
-1
No files found.
programs/winhlp32/macro.c
View file @
2b12e89d
...
...
@@ -488,7 +488,29 @@ void CALLBACK MACRO_HelpOn(void)
void
CALLBACK
MACRO_HelpOnTop
(
void
)
{
WINE_FIXME
(
"()
\n
"
);
static
BOOL
on_top
=
FALSE
;
WINHELP_WINDOW
*
win
;
HWND
main_wnd
=
NULL
;
HMENU
menu
;
for
(
win
=
Globals
.
win_list
;
win
;
win
=
win
->
next
)
if
(
!
lstrcmpi
(
win
->
info
->
name
,
"main"
))
main_wnd
=
win
->
hMainWnd
;
if
(
!
main_wnd
)
{
WINE_ERR
(
"could not find the main window!
\n
"
);
return
;
}
menu
=
GetMenu
(
main_wnd
);
on_top
=
!
on_top
;
if
(
on_top
)
{
CheckMenuItem
(
menu
,
MNID_HELP_HELPTOP
,
MF_BYCOMMAND
|
MF_CHECKED
);
SetWindowPos
(
main_wnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
);
}
else
{
CheckMenuItem
(
menu
,
MNID_HELP_HELPTOP
,
MF_BYCOMMAND
|
MF_UNCHECKED
);
SetWindowPos
(
main_wnd
,
HWND_NOTOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
);
}
}
void
CALLBACK
MACRO_History
(
void
)
...
...
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