Markus Posted September 21, 2008 Share Posted September 21, 2008 I want to dock the gui at the desctop sides - therefore i have to know the width of the border (that is different with every m$ windows style - classic, xp, aero and so on) "It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output Link to comment Share on other sites More sharing options...
martin Posted September 21, 2008 Share Posted September 21, 2008 (edited) I want to dock the gui at the desctop sides - therefore i have to know the width of the border (that is different with every m$ windows style - classic, xp, aero and so on) ;Const $SM_CXFIXEDFRAME = 7, Const $SM_CYCAPTION = 4 $wtitle = DllCall('user32.dll', 'int', 'GetSystemMetrics', 'int', $SM_CYCAPTION) $wside = DllCall('user32.dll', 'int', 'GetSystemMetrics', 'int', $SM_CXFIXEDFRAME) $Title[0] = caption height $wside[0] = width of the border So width of window = Client width + 2* $wside[0] Height of window = Client height + $Title[0] + 2* $wside[0] EDIT:added constants in case they are needed Edited September 21, 2008 by martin 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...
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