Sign in to follow this  
Followers 0
layer

API DrawEdge...

4 posts in this topic

#1 ·  Posted (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.asp

go to paremeters and look for the link, "RECT".. thanks o:)

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
        WEnd

thanks! :lmao:

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites



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;

Members

left

Specifies the x-coordinate of the upper-left corner of the rectangle.

top

Specifies the y-coordinate of the upper-left corner of the rectangle.

right

Specifies the x-coordinate of the lower-right corner of the rectangle.

bottom

Specifies the y-coordinate of the lower-right corner of the rectangle.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

hmm, that'd be pretty cool o:) maybe pretty please kinda? :) but then, to do the GetSystemTimes: http://msdn.microsoft.com/library/default....systemtimes.asp

you 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 :lmao: !

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0