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
48c6eb55
Commit
48c6eb55
authored
Sep 03, 1999
by
Abey George
Committed by
Alexandre Julliard
Sep 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed resizing bugs for windows with WS_THICKFRAME and WS_DLGFRAME
styles.
parent
7026a3d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
nonclient.c
windows/nonclient.c
+1
-1
win.c
windows/win.c
+0
-1
wnd.c
windows/x11drv/wnd.c
+6
-2
No files found.
windows/nonclient.c
View file @
48c6eb55
...
...
@@ -63,7 +63,7 @@ BYTE lpGrayMask[] = { 0xAA, 0xA0,
#define HAS_THICKFRAME(style,exStyle) \
(((style) & WS_THICKFRAME) && \
!((
exStyle) & WS_EX_DLGMODAL
FRAME))
!((
(style) & (WS_DLGFRAME|WS_BORDER)) == WS_DLG
FRAME))
#define HAS_THINFRAME(style) \
(((style) & WS_BORDER) || !((style) & (WS_CHILD | WS_POPUP)))
...
...
windows/win.c
View file @
48c6eb55
...
...
@@ -862,7 +862,6 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
wndPtr
->
flags
|=
WIN_NEED_SIZE
;
}
}
if
(
cs
->
dwExStyle
&
WS_EX_DLGMODALFRAME
)
wndPtr
->
dwStyle
&=
~
WS_THICKFRAME
;
/* Get class or window DC if needed */
...
...
windows/x11drv/wnd.c
View file @
48c6eb55
...
...
@@ -32,6 +32,10 @@
DEFAULT_DEBUG_CHANNEL
(
win
)
/* Some useful macros */
#define HAS_DLGFRAME(style,exStyle) \
((!((style) & WS_THICKFRAME)) && (((style) & WS_DLGFRAME) || ((exStyle) & WS_EX_DLGMODALFRAME)))
/**********************************************************************/
extern
Cursor
X11DRV_MOUSE_XCursor
;
/* Current X cursor */
...
...
@@ -247,7 +251,7 @@ BOOL X11DRV_WND_CreateWindow(WND *wndPtr, CLASS *classPtr, CREATESTRUCTA *cs, BO
size_hints
->
win_gravity
=
StaticGravity
;
size_hints
->
flags
=
PWinGravity
;
if
(
cs
->
dwExStyle
&
WS_EX_DLGMODALFRAME
)
if
(
HAS_DLGFRAME
(
cs
->
style
,
cs
->
dwExStyle
))
{
size_hints
->
min_width
=
size_hints
->
max_width
=
cs
->
cx
;
size_hints
->
min_height
=
size_hints
->
max_height
=
cs
->
cy
;
...
...
@@ -510,7 +514,7 @@ void X11DRV_WND_SetWindowPos(WND *wndPtr, const WINDOWPOS *winpos, BOOL bChangeP
/* Tweak dialog window size hints */
if
((
winposPtr
->
flags
&
WIN_MANAGED
)
&&
(
winposPtr
->
dwExStyle
&
WS_EX_DLGMODALFRAME
))
HAS_DLGFRAME
(
winposPtr
->
dwStyle
,
winposPtr
->
dwExStyle
))
{
XSizeHints
*
size_hints
=
TSXAllocSizeHints
();
...
...
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