projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b5d47
)
don't maximize windows that don't have a maximize button when double-clicking the...
author
Thomas Bluemel
<thomas@reactsoft.com>
Fri, 26 Dec 2003 01:21:17 +0000
(
01:21
+0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Fri, 26 Dec 2003 01:21:17 +0000
(
01:21
+0000)
svn path=/trunk/; revision=7246
reactos/lib/user32/windows/nonclient.c
patch
|
blob
|
history
diff --git
a/reactos/lib/user32/windows/nonclient.c
b/reactos/lib/user32/windows/nonclient.c
index
c4ffbe8
..
3532997
100644
(file)
--- a/
reactos/lib/user32/windows/nonclient.c
+++ b/
reactos/lib/user32/windows/nonclient.c
@@
-923,7
+923,10
@@
DefWndNCLButtonDblClk(HWND hWnd, WPARAM wParam, LPARAM lParam)
case HTCAPTION:
{
/* Maximize/Restore the window */
- SendMessageW(hWnd, WM_SYSCOMMAND, ((Style & (WS_MINIMIZE | WS_MAXIMIZE)) ? SC_RESTORE : SC_MAXIMIZE), 0);
+ if((Style & WS_CAPTION) && (Style & WS_MAXIMIZEBOX))
+ {
+ SendMessageW(hWnd, WM_SYSCOMMAND, ((Style & (WS_MINIMIZE | WS_MAXIMIZE)) ? SC_RESTORE : SC_MAXIMIZE), 0);
+ }
break;
}
case HTSYSMENU: