|
-
February 28th, 2000, 04:37 PM
#1
can anyone help?
How can I get GetWindowPlacement to work
Thanks
-
February 28th, 2000, 04:56 PM
#2
Re: can anyone help?
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
-
February 28th, 2000, 05:23 PM
#3
Re: can anyone help?
i really don't get the syntax contruction of it, do you have any good examples on this API?
-
February 28th, 2000, 05:37 PM
#4
Re: can anyone help?
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
-
February 28th, 2000, 05:41 PM
#5
Re: can anyone help?
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.
-
February 28th, 2000, 05:47 PM
#6
Re: can anyone help?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|