Hi, try using SetWindowPos() instead of MoveWindow().
SetWindowPos(NULL, newX, newY, 0, 0, SWP_NOSIZE|SWP_NOZORDER);
Using the flags SWP_NOSIZE|SWP_NOZORDER, the window just will move.
Fabian
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
Thread: Howto resize and move a dialog?Threaded View
|
Click Here to Expand Forum to Full Width |