BOOL AdjustWindowRect(
LPRECT lpRect,
DWORD dwStyle,
BOOL bMenu);
**// 클라이언트 영역의 크기를 300, 300으로 정해주고 싶으면, (0, 0, 299, 299)의 rect를 넘겨주면 된다.**
원하는 클라이언트 영역의 크기를 lpRect로 넘겨주면, 해당 클라이언트 영역에 해당하는 전체 윈도우의 크기를 다시 lpRect에 저장해준다.
그래서, CreateWindow 함수로 윈도우를 만들 때, 이 함수를 통해 얻은 전체 윈도우의 크기를 활용해 만들어준다.
BOOL GetClientRect(
[in] HWND hWnd,
[out] LPRECT lpRect
);
BOOL MoveWindow(
[in] HWND hWnd,
[in] int X,
[in] int Y,
[in] int nWidth,
[in] int nHeight,
[in] BOOL bRepaint
);
HBITMAP CreateCompatibleBitmap(
[in] HDC hdc,
[in] int cx,
[in] int cy
);
int SetROP2(
[in] HDC hdc,
[in] int rop2
);