[code]
BOOL WINAPI SetClientSize(HWND hWnd, int nWidth, int nHeight) {
RECT rtWindow, rtClient;
GetWindowRect(hWnd, &rtWindow);
GetClientRect(hWnd, &rtClient);

nWidth += (rtWindow.right - rtWindow.left) - (rtClient.right - rtClient.left);
nHeight += (rtWindow.bottom - rtWindow.top) - (rtClient.bottom - rtClient.top);

SetWindowPos(hWnd, NULL, 0, 0, nWidth, nHeight, SWP_NOMOVE);
return TRUE;
}
[/code]

전에 만들어둔 함수 하나 올립니다..
윈도우 작업영역의 크기에 맞게 윈도우 크기 변경해주는 함수입니다.
그러니깐.. 인자로 넘긴 값 보다 윈도우가 약간 더 커지겠죠 :-)
rtClient.left 와 rtClient.top 은 항상 0 이라 빼줄 필요는 없긴한데..
그래두 .... 음..;