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
966cf7c8
Commit
966cf7c8
authored
Jun 25, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer.exe: Create the top-level message window along with the desktop window.
parent
6b36e213
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
desktop.c
programs/explorer/desktop.c
+9
-1
No files found.
programs/explorer/desktop.c
View file @
966cf7c8
...
@@ -230,8 +230,9 @@ static void set_desktop_window_title( HWND hwnd, const WCHAR *name )
...
@@ -230,8 +230,9 @@ static void set_desktop_window_title( HWND hwnd, const WCHAR *name )
void
manage_desktop
(
WCHAR
*
arg
)
void
manage_desktop
(
WCHAR
*
arg
)
{
{
static
const
WCHAR
defaultW
[]
=
{
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
0
};
static
const
WCHAR
defaultW
[]
=
{
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
0
};
static
const
WCHAR
messageW
[]
=
{
'M'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
0
};
MSG
msg
;
MSG
msg
;
HWND
hwnd
;
HWND
hwnd
,
msg_hwnd
;
unsigned
long
xwin
=
0
;
unsigned
long
xwin
=
0
;
unsigned
int
width
,
height
;
unsigned
int
width
,
height
;
WCHAR
*
cmdline
=
NULL
;
WCHAR
*
cmdline
=
NULL
;
...
@@ -293,6 +294,11 @@ void manage_desktop( WCHAR *arg )
...
@@ -293,6 +294,11 @@ void manage_desktop( WCHAR *arg )
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
),
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
),
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
),
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
),
0
,
0
,
0
,
NULL
);
0
,
0
,
0
,
NULL
);
/* create the HWND_MESSAGE parent */
msg_hwnd
=
CreateWindowExW
(
0
,
messageW
,
NULL
,
WS_POPUP
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
if
(
hwnd
==
GetDesktopWindow
())
if
(
hwnd
==
GetDesktopWindow
())
{
{
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wnd_proc
);
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wnd_proc
);
...
@@ -309,6 +315,8 @@ void manage_desktop( WCHAR *arg )
...
@@ -309,6 +315,8 @@ void manage_desktop( WCHAR *arg )
hwnd
=
0
;
hwnd
=
0
;
}
}
if
(
GetAncestor
(
msg_hwnd
,
GA_PARENT
))
DestroyWindow
(
msg_hwnd
);
/* someone beat us to it */
/* if we have a command line, execute it */
/* if we have a command line, execute it */
if
(
cmdline
)
if
(
cmdline
)
{
{
...
...
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