How can I get GetWindowPlacement to work
Thanks
Printable View
How can I get GetWindowPlacement to work
Thanks
What problems are you having with it ? I've got some code that uses this (somewhere), let me know the problem and I'll get back to you.
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
i really don't get the syntax contruction of it, do you have any good examples on this API?
I can't find them at the moment - you'll have to wait till I get into work tomorrow (I should have some code there - and my MSDN disks).
You are remembering to set the length of the WINDOWPLACEMENT structure (ie. wp.size = len(wp) - or whatever it's called). In fact, I saw a VB site today that had an example on how to use this API call (can't remember off the top of my head what site it was though :(
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
yeah you also need POINTAPI and WINDOWPLACEMENT and RECT, so it's a lot of code for one API, but I'm still confused, I'll wait until you get to work, hopefully you'll find something about this API, thanks.
There's also a 'flags' property on WINDOWPLACEMENT that needs filling - like I said, I haven't got access to the MSDN from home (well, only the online version, and I'm not wading through that now :)
You could always just try playing with it for now, and let us all know how you get on (I'm sure you won't kill your computer ;-)
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb