I need to be able to maximize a VB form from it's handle (don't ask). I
think I've found the right API but I need some help using it. It looks like
the function SetWindowPos will do what I want but it takes a WINDOWPLACEMENT
structure as one of it's arguments. I can declare the function and the type
fine in VB but the documentation says that I have to set the LENGTH member
of the WINDOWPLACEMENT structure equal to sizeof(WINDOWPLACEMENT ). I don't
know how to do this in VB.
I tried to get around it by calling GetWidowPos in the hope that the
returned structure would have this set for me, but no such luck. I need to
set the same thing in order for GetWindowPos to work.
Any suggestions?
--
Brett Martensen
(309) 661-7851