m0nk3yI3unz Posted January 20, 2008 Share Posted January 20, 2008 Hey all. Im having a problm finding out the bits or hex values used for flag parameters in DLL Calls. Im referring to http://msdn2.microsoft.com/en-us/library/m...545(VS.85).aspx . I want to put a frame around a window, so I would want to set the SWP_DRAWFRAME flag - but putting in "SWP_DRAWFRAME" in the uint type, obviously, doesn't work. I figured I had to find the bit, after seeing the AutoIt Theme script, question being How?Any help? Monkeh. Link to comment Share on other sites More sharing options...
BrettF Posted January 20, 2008 Share Posted January 20, 2008 (edited) $gui = GuiCreate ("", 500, 500, 10, 10) GUISetState (@SW_SHOW) Sleep (3000) $hwnd = $gui $insertafter = "HWND_NOTOPMOST" $x = 100 $y = 100 $cx = 250 $cy = 250 $flags = 0x0020;SWP_DRAWFRAME = SWP_FRAMECHANGED?? From what I have found it does :S $val = DllCall ("USER32.dll", "INT", "SetWindowPos", "HWND", $hwnd, "HWND", $insertafter, "INT", $x, "INT", $y, "INT", $cx, "INT", $cy, "UINT", $flags) MsgBox (0, "", $val[0]) Sleep (3000) Edited January 20, 2008 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
m0nk3yI3unz Posted January 20, 2008 Author Share Posted January 20, 2008 ah. Its that whole lot about owning the window, isn't it? Monkeh. Link to comment Share on other sites More sharing options...
BrettF Posted January 20, 2008 Share Posted January 20, 2008 ah. Its that whole lot about owning the window, isn't it?I don't follow... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
therks Posted January 21, 2008 Share Posted January 21, 2008 I use Gary's API constants script whenever I need a constant that's not been defined.It gave me this:Global Const $SWP_FRAMECHANGED = 0x20 Global Const $SWP_DRAWFRAME = $SWP_FRAMECHANGED(So yes, you were right Bert) My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
BrettF Posted January 21, 2008 Share Posted January 21, 2008 I use Gary's API constants script whenever I need a constant that's not been defined. It gave me this: Global Const $SWP_FRAMECHANGED = 0x20 Global Const $SWP_DRAWFRAME = $SWP_FRAMECHANGED (So yes, you were right Bert)Yay! Lol. @OP- WinGetHandle... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
FreeFry Posted January 21, 2008 Share Posted January 21, 2008 When I want to find out about some Constant value(such as SWP_DRAWFRAME) then I do a simple google, like this:http://www.google.com/search?q=%22define%2...22%20filetype:hThat usually pulls up some header include files where those constants are defined in. 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