CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Get & Set Dialog Position

    I'd like to get the dialog position in OnOK() so that next time I can set it at its last position (using SetWindPos). There is no function GetWinPos() so how do we do it? Thanks.


  2. #2
    Join Date
    Apr 1999
    Location
    California, USA
    Posts
    9

    Re: Get & Set Dialog Position

    Check out GetWndPlacement() or GetClientRect() or GetWindowRect()- depending on which one you use you may or may not have to convert to the client coordinates of the parent window.


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