BLS
ping Deek, Marc Min-Maximies Button enable/disable source September 27, 2008 01:57PM |
FUNCTION DisableMaximizeButton( nHandle is int ) nStyle is int nStyle = API( "User32", "GetWindowLongA", nHandle, -16 ) // GWL_STYLE nStyle = BinaryAND( nStyle, BinaryNOT(65536) ) //WS_MAXIMIZEBOX bRes is boolean = ( API( "User32","SetWindowLongA",nHandle, -16,nStyle ) <> 0 ) IF bRes THEN RESULT ( API( "User32","SetWindowPos",nHandle, 0,0,0,0,0,0x27 ) <> 0 ) ELSE RESULT False END
FUNCTION EnableMaximizeButton( nHandle is int ) nStyle is int nStyle = API( "User32", "GetWindowLongA", nHandle, -16 ) // GWL_STYLE nStyle = BinaryOR( nStyle, 65536 ) bRes is boolean = ( API( "User32","SetWindowLongA",nHandle, -16,nStyle ) <> 0 ) IF bRes THEN RESULT ( API( "User32", "SetWindowPos", nHandle, 0,0,0,0,0,0x27 ) <> 0 ) ELSE RESULT False END
FUNCTION DisableMinimizeButton( nHandle is int ) nStyle is int nStyle = API( "User32", "GetWindowLongA", nHandle, -16 ) // GWL_STYLE nStyle = BinaryAND( nStyle, BinaryNOT(131072) ) //WS_MINIIMIZEBOX bRes is boolean = ( API( "User32","SetWindowLongA",nHandle, -16,nStyle ) <> 0 ) IF bRes THEN RESULT ( API( "User32","SetWindowPos",nHandle, 0,0,0,0,0,0x27 ) <> 0 ) ELSE RESULT False END
FUNCTION EnableMinimizeButton( nHandle is int ) nStyle is int nStyle = API( "User32", "GetWindowLongA", nHandle, -16 ) // GWL_STYLE nStyle = BinaryOR( nStyle, 131072 ) //WS_MINIIMIZEBOX bRes is boolean = ( API( "User32","SetWindowLongA",nHandle, -16,nStyle ) <> 0 ) IF bRes THEN RESULT ( API( "User32","SetWindowPos",nHandle, 0,0,0,0,0,0x27 ) <> 0 ) ELSE RESULT False END
// Window init.section IF DisableMaximizeButton(NAME_OF_CHILDWINDOW) THEN END IF DisableMinimizeButton(NAME_OF_CHILDWINDOW) THEN END
Al
Re: ping Deek, Marc Min-Maximies Button enable/disable source September 27, 2008 02:36PM |
BLS
Re: ping Derek, Mark Min-MaximizeButton enable/disable source September 27, 2008 03:31PM |