When executing some win32 messages in c# I get unexpected results.
The following example is suppose to return the handle of an image in a
button control of another application but it return a negative
handle...is anybody know why it return an invalid handle like
"-989523277" ??
IntPtr ImageHandle =
Win32.SendMessa ge(Handle,BM_GE TIMAGE,IntPtr.Z ero,IntPtr.Zero );
MessageBox.Show (ImageHandle.To String());
Note : the third param is set to IMAGE_BITMAP (0); it return 0 if
the button contain no image.
Thanks...
The following example is suppose to return the handle of an image in a
button control of another application but it return a negative
handle...is anybody know why it return an invalid handle like
"-989523277" ??
IntPtr ImageHandle =
Win32.SendMessa ge(Handle,BM_GE TIMAGE,IntPtr.Z ero,IntPtr.Zero );
MessageBox.Show (ImageHandle.To String());
Note : the third param is set to IMAGE_BITMAP (0); it return 0 if
the button contain no image.
Thanks...
Comment