N
Nick
I want to call and API function. And this is just an example, there are
a lot of them that require flags.
This one is from user32.dll
BOOL AnimateWindow(
HWND hwnd,
DWORD dwTime,
DWORD dwFlags
);
I import it like this:
[DllImport("user32.dll",EntryPoint="AnimateWindow")]
public static extern bool AnimateWindow(IntPtr h_Window,int time,int flags);
and then call it:
AnimateWindow(this.Handle,300,1|8);
Now that last argument im basically guessing and checking the result. If
I put 1 it slides, if I put 1|8 it also slides but differently.
Im sure there is a better way to translate "AW_SLIDE|AW_VER_NEGATIVE"
for use in C#.
Someone please enlighten me...
Thanks.
Nick Z.
a lot of them that require flags.
This one is from user32.dll
BOOL AnimateWindow(
HWND hwnd,
DWORD dwTime,
DWORD dwFlags
);
I import it like this:
[DllImport("user32.dll",EntryPoint="AnimateWindow")]
public static extern bool AnimateWindow(IntPtr h_Window,int time,int flags);
and then call it:
AnimateWindow(this.Handle,300,1|8);
Now that last argument im basically guessing and checking the result. If
I put 1 it slides, if I put 1|8 it also slides but differently.
Im sure there is a better way to translate "AW_SLIDE|AW_VER_NEGATIVE"
for use in C#.
Someone please enlighten me...
Thanks.
Nick Z.