09-27-2008, 03:39 AM
,case WM_SIZE
,int x y cx cy;GetWinXY(hDlg x y cx cy)
,MoveWindow id(3 hDlg) 0 20 cx-10 cy-55 1
The edit window is being move in relation to the main window hDlg...that's why the numbers are simply 0 and 20...instead of x and y+20...that would move the window as far as the main window is positioned on the screen within the main window...not what you want. But the cx and cy will give you the over all size. Do some subtracting to get it to size up just right and your good.
Jimmy Vig