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
936ab3a6
Commit
936ab3a6
authored
Feb 28, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Moved the ShowWindow implementation from winex11 back to user32.
parent
63dd1a02
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
41 deletions
+20
-41
driver.c
dlls/user32/driver.c
+0
-13
user32.spec
dlls/user32/user32.spec
+0
-1
user_private.h
dlls/user32/user_private.h
+0
-1
win.c
dlls/user32/win.c
+17
-3
winpos.c
dlls/user32/winpos.c
+0
-0
window.c
dlls/winex11.drv/window.c
+0
-21
winex11.drv.spec
dlls/winex11.drv/winex11.drv.spec
+0
-1
winpos.c
dlls/winex11.drv/winpos.c
+0
-0
win.h
include/win.h
+3
-1
No files found.
dlls/user32/driver.c
View file @
936ab3a6
...
...
@@ -119,7 +119,6 @@ static const USER_DRIVER *load_driver(void)
GET_USER_FUNC
(
SetWindowIcon
);
GET_USER_FUNC
(
SetWindowStyle
);
GET_USER_FUNC
(
SetWindowText
);
GET_USER_FUNC
(
ShowWindow
);
GET_USER_FUNC
(
SysCommandSizeMove
);
GET_USER_FUNC
(
WindowMessage
);
#undef GET_USER_FUNC
...
...
@@ -396,11 +395,6 @@ static void nulldrv_SetWindowText( HWND hwnd, LPCWSTR text )
{
}
static
BOOL
nulldrv_ShowWindow
(
HWND
hwnd
,
INT
cmd
)
{
return
FALSE
;
}
static
void
nulldrv_SysCommandSizeMove
(
HWND
hwnd
,
WPARAM
wparam
)
{
}
...
...
@@ -465,7 +459,6 @@ static const USER_DRIVER null_driver =
nulldrv_SetWindowIcon
,
nulldrv_SetWindowStyle
,
nulldrv_SetWindowText
,
nulldrv_ShowWindow
,
nulldrv_SysCommandSizeMove
,
nulldrv_WindowMessage
};
...
...
@@ -721,11 +714,6 @@ static void loaderdrv_SetWindowText( HWND hwnd, LPCWSTR text )
load_driver
()
->
pSetWindowText
(
hwnd
,
text
);
}
static
BOOL
loaderdrv_ShowWindow
(
HWND
hwnd
,
INT
cmd
)
{
return
load_driver
()
->
pShowWindow
(
hwnd
,
cmd
);
}
static
void
loaderdrv_SysCommandSizeMove
(
HWND
hwnd
,
WPARAM
wparam
)
{
load_driver
()
->
pSysCommandSizeMove
(
hwnd
,
wparam
);
...
...
@@ -791,7 +779,6 @@ static const USER_DRIVER lazy_load_driver =
loaderdrv_SetWindowIcon
,
loaderdrv_SetWindowStyle
,
loaderdrv_SetWindowText
,
loaderdrv_ShowWindow
,
loaderdrv_SysCommandSizeMove
,
loaderdrv_WindowMessage
};
dlls/user32/user32.spec
View file @
936ab3a6
...
...
@@ -789,7 +789,6 @@
#
@ cdecl HOOK_CallHooks(long long long long long)
@ cdecl USER_Unlock()
@ cdecl WINPOS_ActivateOtherWindow(long)
@ cdecl WINPOS_GetMinMaxInfo(long ptr ptr ptr ptr)
@ cdecl WINPOS_ShowIconTitle(long long)
@ cdecl WIN_GetPtr(long)
...
...
dlls/user32/user_private.h
View file @
936ab3a6
...
...
@@ -155,7 +155,6 @@ typedef struct tagUSER_DRIVER {
void
(
*
pSetWindowIcon
)(
HWND
,
UINT
,
HICON
);
void
(
*
pSetWindowStyle
)(
HWND
,
DWORD
);
void
(
*
pSetWindowText
)(
HWND
,
LPCWSTR
);
BOOL
(
*
pShowWindow
)(
HWND
,
INT
);
void
(
*
pSysCommandSizeMove
)(
HWND
,
WPARAM
);
LRESULT
(
*
pWindowMessage
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
}
USER_DRIVER
;
...
...
dlls/user32/win.c
View file @
936ab3a6
...
...
@@ -868,7 +868,7 @@ static void dump_window_styles( DWORD style, DWORD exstyle )
*/
static
HWND
WIN_CreateWindowEx
(
CREATESTRUCTA
*
cs
,
LPCWSTR
className
,
UINT
flags
)
{
INT
cx
,
cy
,
sw
=
SW_SHOW
;
INT
cx
,
cy
,
s
tyle
,
s
w
=
SW_SHOW
;
LRESULT
result
;
RECT
rect
;
WND
*
wndPtr
;
...
...
@@ -1153,6 +1153,10 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags
result
=
SendMessageA
(
hwnd
,
WM_CREATE
,
0
,
(
LPARAM
)
cs
);
if
(
result
==
-
1
)
goto
failed
;
/* call the driver */
if
(
!
USER_Driver
->
pCreateWindow
(
hwnd
))
goto
failed
;
NotifyWinEvent
(
EVENT_OBJECT_CREATE
,
hwnd
,
OBJID_WINDOW
,
0
);
/* send the size messages */
...
...
@@ -1168,9 +1172,19 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags
}
else
WIN_ReleasePtr
(
wndPtr
);
/*
call the driver
*/
/*
Show the window, maximizing or minimizing if needed
*/
if
(
!
USER_Driver
->
pCreateWindow
(
hwnd
))
goto
failed
;
style
=
WIN_SetStyle
(
hwnd
,
0
,
WS_MAXIMIZE
|
WS_MINIMIZE
);
if
(
style
&
(
WS_MINIMIZE
|
WS_MAXIMIZE
))
{
RECT
newPos
;
UINT
swFlag
=
(
style
&
WS_MINIMIZE
)
?
SW_MINIMIZE
:
SW_MAXIMIZE
;
swFlag
=
WINPOS_MinMaximize
(
hwnd
,
swFlag
,
&
newPos
);
swFlag
|=
SWP_FRAMECHANGED
;
/* Frame always gets changed */
if
(
!
(
style
&
WS_VISIBLE
)
||
(
style
&
WS_CHILD
)
||
GetActiveWindow
())
swFlag
|=
SWP_NOACTIVATE
;
SetWindowPos
(
hwnd
,
0
,
newPos
.
left
,
newPos
.
top
,
newPos
.
right
,
newPos
.
bottom
,
swFlag
);
}
/* Notify the parent window only */
...
...
dlls/user32/winpos.c
View file @
936ab3a6
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/window.c
View file @
936ab3a6
...
...
@@ -1376,33 +1376,12 @@ BOOL X11DRV_CreateDesktopWindow( HWND hwnd )
BOOL
X11DRV_CreateWindow
(
HWND
hwnd
)
{
Display
*
display
=
thread_display
();
DWORD
style
;
if
(
hwnd
==
GetDesktopWindow
()
&&
root_window
!=
DefaultRootWindow
(
display
))
{
/* the desktop win data can't be created lazily */
if
(
!
create_desktop_win_data
(
display
,
hwnd
))
return
FALSE
;
}
/* Show the window, maximizing or minimizing if needed */
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
(
style
&
(
WS_MINIMIZE
|
WS_MAXIMIZE
))
{
extern
UINT
WINPOS_MinMaximize
(
HWND
hwnd
,
UINT
cmd
,
LPRECT
rect
);
/*FIXME*/
RECT
newPos
;
UINT
swFlag
=
(
style
&
WS_MINIMIZE
)
?
SW_MINIMIZE
:
SW_MAXIMIZE
;
WIN_SetStyle
(
hwnd
,
0
,
WS_MAXIMIZE
|
WS_MINIMIZE
);
swFlag
=
WINPOS_MinMaximize
(
hwnd
,
swFlag
,
&
newPos
);
swFlag
|=
SWP_FRAMECHANGED
;
/* Frame always gets changed */
if
(
!
(
style
&
WS_VISIBLE
)
||
(
style
&
WS_CHILD
)
||
GetActiveWindow
())
swFlag
|=
SWP_NOACTIVATE
;
SetWindowPos
(
hwnd
,
0
,
newPos
.
left
,
newPos
.
top
,
newPos
.
right
,
newPos
.
bottom
,
swFlag
);
}
return
TRUE
;
}
...
...
dlls/winex11.drv/winex11.drv.spec
View file @
936ab3a6
...
...
@@ -110,7 +110,6 @@
@ cdecl SetWindowRgn(long long long) X11DRV_SetWindowRgn
@ cdecl SetWindowStyle(ptr long) X11DRV_SetWindowStyle
@ cdecl SetWindowText(long wstr) X11DRV_SetWindowText
@ cdecl ShowWindow(long long) X11DRV_ShowWindow
@ cdecl SysCommandSizeMove(long long) X11DRV_SysCommandSizeMove
@ cdecl WindowMessage(long long long long) X11DRV_WindowMessage
...
...
dlls/winex11.drv/winpos.c
View file @
936ab3a6
This diff is collapsed.
Click to expand it.
include/win.h
View file @
936ab3a6
...
...
@@ -115,8 +115,10 @@ extern LONG WINPOS_HandleWindowPosChanging(HWND hwnd, WINDOWPOS *winpos) DECLSPE
extern
HWND
WINPOS_WindowFromPoint
(
HWND
hwndScope
,
POINT
pt
,
INT
*
hittest
)
DECLSPEC_HIDDEN
;
extern
void
WINPOS_CheckInternalPos
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
WINPOS_ActivateOtherWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
UINT
WINPOS_MinMaximize
(
HWND
hwnd
,
UINT
cmd
,
LPRECT
rect
)
DECLSPEC_HIDDEN
;
extern
BOOL
set_window_pos
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
const
RECT
*
valid_rects
);
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
const
RECT
*
valid_rects
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_WIN_H */
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