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.
Printable View
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.
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.