Greenhorn Posted April 24, 2008 Share Posted April 24, 2008 Hi, I want to create a window that only shows the CloseBox in the titlebar, or with disabled Minimize/MaximizeBox. Which window style(s) do I have to set to get my wishes true ... ? Please, could somebody help me ? $hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, _ BitOR($WS_VISIBLE, $WS_TABSTOP, $DS_MODALFRAME, $DS_SETFOREGROUND), _ BitOR($WS_EX_APPWINDOW, $WS_EX_TOPMOST, $WS_EX_CLIENTEDGE, $WS_EX_DLGMODALFRAME )) $Button1 = GUICtrlCreateButton($szButton1, $iLeft1, $iTop, 80, 25, 0) $Button2 = GUICtrlCreateButton($szButton2, $iLeft2, $iTop, 80, 25, 0) $Button3 = GUICtrlCreateButton($szButton3, $iLeft3, $iTop, 80, 25, 0) $Label1 = GUICtrlCreateLabel($szString, 90, 40) This window is nearly what I want, but how could I disable the MaximizeBox ... Greetz Greenhorn Link to comment Share on other sites More sharing options...
martin Posted April 24, 2008 Share Posted April 24, 2008 Hi, I want to create a window that only shows the CloseBox in the titlebar, or with disabled Minimize/MaximizeBox. Which window style(s) do I have to set to get my wishes true ... ? Please, could somebody help me ? $hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, _ BitOR($WS_VISIBLE, $WS_TABSTOP, $DS_MODALFRAME, $DS_SETFOREGROUND), _ BitOR($WS_EX_APPWINDOW, $WS_EX_TOPMOST, $WS_EX_CLIENTEDGE, $WS_EX_DLGMODALFRAME )) $Button1 = GUICtrlCreateButton($szButton1, $iLeft1, $iTop, 80, 25, 0) $Button2 = GUICtrlCreateButton($szButton2, $iLeft2, $iTop, 80, 25, 0) $Button3 = GUICtrlCreateButton($szButton3, $iLeft3, $iTop, 80, 25, 0) $Label1 = GUICtrlCreateLabel($szString, 90, 40) This window is nearly what I want, but how could I disable the MaximizeBox ... Greetz Greenhorn You could do it like this $hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, BitOR($WS_SIZEBOX,$WS_CAPTION), 0) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Greenhorn Posted April 24, 2008 Author Share Posted April 24, 2008 You could do it like this $hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, BitOR($WS_SIZEBOX,$WS_CAPTION), 0)That's exactly what I was looking for ! Thank you very much, martin !!!GreetzGreenhorn Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now