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
bf575f1f
Commit
bf575f1f
authored
Jul 19, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize the various menu global variables on demand instead of at
startup time.
parent
4029ee29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
+3
-6
controls.h
dlls/user/controls.h
+0
-2
menu.c
dlls/user/menu.c
+0
-0
user_main.c
dlls/user/user_main.c
+0
-3
win.c
dlls/user/win.c
+3
-1
No files found.
dlls/user/controls.h
View file @
bf575f1f
...
@@ -56,9 +56,7 @@ extern BOOL DESKTOP_SetPattern( LPCWSTR pattern );
...
@@ -56,9 +56,7 @@ extern BOOL DESKTOP_SetPattern( LPCWSTR pattern );
extern
HWND
ICONTITLE_Create
(
HWND
hwnd
);
extern
HWND
ICONTITLE_Create
(
HWND
hwnd
);
/* menu controls */
/* menu controls */
extern
BOOL
MENU_Init
(
void
);
extern
HWND
MENU_IsMenuActive
(
void
);
extern
HWND
MENU_IsMenuActive
(
void
);
extern
HMENU
MENU_GetSysMenu
(
HWND
hWndOwner
,
HMENU
hSysPopup
);
extern
UINT
MENU_GetMenuBarHeight
(
HWND
hwnd
,
UINT
menubarWidth
,
extern
UINT
MENU_GetMenuBarHeight
(
HWND
hwnd
,
UINT
menubarWidth
,
INT
orgX
,
INT
orgY
);
INT
orgX
,
INT
orgY
);
extern
BOOL
MENU_SetMenu
(
HWND
,
HMENU
);
extern
BOOL
MENU_SetMenu
(
HWND
,
HMENU
);
...
...
dlls/user/menu.c
View file @
bf575f1f
This diff is collapsed.
Click to expand it.
dlls/user/user_main.c
View file @
bf575f1f
...
@@ -179,9 +179,6 @@ static BOOL process_attach(void)
...
@@ -179,9 +179,6 @@ static BOOL process_attach(void)
/* Initialize built-in window classes */
/* Initialize built-in window classes */
CLASS_RegisterBuiltinClasses
();
CLASS_RegisterBuiltinClasses
();
/* Initialize menus */
if
(
!
MENU_Init
())
return
FALSE
;
/* Initialize message spying */
/* Initialize message spying */
if
(
!
SPY_Init
())
return
FALSE
;
if
(
!
SPY_Init
())
return
FALSE
;
...
...
dlls/user/win.c
View file @
bf575f1f
...
@@ -976,7 +976,9 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
...
@@ -976,7 +976,9 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
wndPtr
->
userdata
=
0
;
wndPtr
->
userdata
=
0
;
wndPtr
->
hIcon
=
0
;
wndPtr
->
hIcon
=
0
;
wndPtr
->
hIconSmall
=
0
;
wndPtr
->
hIconSmall
=
0
;
wndPtr
->
hSysMenu
=
(
wndPtr
->
dwStyle
&
WS_SYSMENU
)
?
MENU_GetSysMenu
(
hwnd
,
(
HMENU
)
-
1
)
:
0
;
wndPtr
->
hSysMenu
=
0
;
if
(
wndPtr
->
dwStyle
&
WS_SYSMENU
)
SetSystemMenu
(
hwnd
,
0
);
/*
/*
* Correct the window styles.
* Correct the window styles.
...
...
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