CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    can anyone help?

    How can I get GetWindowPlacement to work

    Thanks


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    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

  3. #3
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: can anyone help?

    i really don't get the syntax contruction of it, do you have any good examples on this API?


  4. #4
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    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

  5. #5
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    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.


  6. #6
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    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
  •  





Click Here to Expand Forum to Full Width

Featured