Oh! really thank ful to you. Thanks for replying.
I have a small problem. I have a frame in a dialog.
I want to move other window to that frame window's coordinates. the frame window coordinates is fixed. I have to get the coordinates and have to move that other window.
here the problem is i am using MDI application. my child dialog is bigger. and the dialog displaying is smaller. so it is with scrollbar. the frame i mensioned in above is bigger than the mdi child's size. with scrolling we can see that window.
I have to move my window to that frame window. how to make it possiable. if you did not understand please let me know i will send you a sample program. thanks a lot.
MoveWindow Function
The MoveWindow function changes the position and dimensions of the specified window. For a top-level window, the position and dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area.
So the only thing you must handle is to define proper coordinates and map them into coordinates of parent of window to be moved.
You should read the MSDN articles on GetClientRect and GetWindowRect. The latter returns the rect in screen coordinates, so the following ScreenToClient is seemed like been having a sense. In contrast to GetClientRect case...
PS. The golden programmer's rule: never neglect reading helps. Especially being facing troubles.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.