layer Posted February 8, 2005 Share Posted February 8, 2005 (edited) hey folks... im just messing around with DllCall again and i need help with "DrawEdge"... well, only a little part of it i need help with... theres one part in the function that requires a RECT structure, but thats not a Dll or anything, so i assume this would have to actually be done in C++? heres the link..http://msdn.microsoft.com/library/default....ntdraw_6aat.aspgo to paremeters and look for the link, "RECT".. thanks EDIT: oh yea, heres what i tried...#include <GUIConstants.au3> $hwnd= GUICreate ("edge test DllCall") GUISetState () $coords= "10, 20, 20, 20" $dc= DllCall ("user32.dll", "int", "GetDc", "hwnd", $hwnd) $edge= DllCall ("user32.dll", "int", "DrawEdge", "hwnd", $hwnd, "int", $coords, "int", "BDR_RAISEDINNER", "int", "EDGE_RAISED") $realesedc= DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0]) While 1 $get= GUIGetMsg () If $get= -3 then Exit WEndthanks! Edited February 8, 2005 by layer FootbaG Link to comment Share on other sites More sharing options...
Developers Jos Posted February 8, 2005 Developers Share Posted February 8, 2005 theres one part in the function that requires a RECT structure<{POST_SNAPBACK}>You cannot use special structures with dllcall() .RECT is a special structure:The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle. typedef struct _RECT { // rc LONG left; LONG top; LONG right; LONG bottom; } RECT; MembersleftSpecifies the x-coordinate of the upper-left corner of the rectangle. topSpecifies the y-coordinate of the upper-left corner of the rectangle. rightSpecifies the x-coordinate of the lower-right corner of the rectangle. bottomSpecifies the y-coordinate of the lower-right corner of the rectangle. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 8, 2005 Administrators Share Posted February 8, 2005 As RECT and POINT are fairly common (and easy to represent in an autoit array) maybe we could add those partiular types in. Maybe. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
layer Posted February 8, 2005 Author Share Posted February 8, 2005 (edited) hmm, that'd be pretty cool maybe pretty please kinda? but then, to do the GetSystemTimes: http://msdn.microsoft.com/library/default....systemtimes.aspyou would need FILETIME... so i guess it wouldnt really matter, because all of the needs for people wouldn't be filled, but it would for some others, so then you'd have 100000000000 requests and so on... so its up to you EDIT: hey Jon, why does your Signiture say "Grasp the nettles"? wouldn't that hurt ! Edited February 8, 2005 by layer FootbaG 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