I am trying to recall the position and size of the window the next time the application is run, by storing the position and size in the registry.
I have just about got it working, but I am having problems on a Windows XP machine.
I am getting the position from the WM_MOVE and the size from the WM_SIZE calls.
If I move the window slightly (by clicking ob the caption bar and moving the window) I can then get the correct values for the position.
I therefore think I need to force a WM_MOVE call, I tried this using iret=SendMessage(hWnd,WM_MOVE,0,0) but it didn't work.
As you can see I'm confused - any help would be appreciated.