I have a mode-less MFC Dialog which when closed and re-opened, I want the window to appear on the same spot that it was closed on. To do this I need the x,y co-ordinates of the window before it closes (so i can save them in variables and apply them on to the setWindowsPos() of the new window).
How can I find the current position co-ordinates of the Dialog? Any help would be appreciated.
 Thanks.