- 5인용C++스터디/윈도우에그림그리기
DC 핸들을 얻고 해제하는 가장 일반적인 방법은 WM_PAINT 메시지 처리 도중 BeginPaint와 EndPaint 호출을 사용하는 것이다.
hdc = BeginPaint (hwnd, &ps);
WM_PAINT 처리는 거의 항상 BeginPaint에 대한 호출로 시작된다.
hdc = BeginPaint (hwnd, &ps);
WndProc은 BeginPaint를 호출하고 난 후 GetClientRect를 호출한다.
hDC=BeginPaint(hWnd,&ps);
hDC=BeginPaint(hWnd,&ps);