on Oct 12th, 2014, 11:24am, Matt wrote:| Is there a way to stop this ability, but still be able to minimise if necessary? |
|
Did you try Google? A quick search gave several hits stating that the only way is to suppress the WM_NCLBUTTONDBLCLK message:
Code: INSTALL @lib$+"SUBCLASS"
PROC_subclass(WM_NCLBUTTONDBLCLK, FNdummy())
DEF FNdummy(M%,W%,L%) = FALSE
SYS "ShowWindow", @hwnd%, SW_MAXIMIZE
SYS "GetWindowLong", @hwnd%, GWL_STYLE TO ws%
SYS "SetWindowLong", @hwnd%, GWL_STYLE, ws% AND NOT WS_MAXIMIZEBOX
REPEAT
WAIT 1
UNTIL FALSE
You could probably argue that being able to double-click on the title bar even when the maximize box is disabled is a bug in Windows, but of course they can't change the behaviour now.
Richard.