So I want to move a control from a dialog box to some position and then move it back to it's initial position but, how do I get it's initial position? I tried ScreenToClient, MapWindowPoints, etc with no sucess. The first movement I know how to do, its going to be at the dialog's .left and .top.
Call GetWindowRect() on your control to get its bounding rectangle in screen coordinates, then call ScreenToClient() on that rect from your dialog to translate into dialog coordinates.
I already tried that, this code makes the first movement right, but the last one that's supposed to take it back to the initial spot takes it to the top left corner of the dialog.
Bookmarks