SetPixel()을 이용한 LineTo() 함수 구현
LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam) { /////////////////////////////////// HDC hdc; static int x1, y1, x2, y2; /////////////////////////////////// switch(iMessage) { case WM_LBUTTONDOWN: x1=LOWORD(lParam); y1=HIWORD(lParam); return 0; case WM_LBUTTONUP: x2=LOWORD(lParam); y2=HIWORD(lParam); hdc=GetDC(hWnd); /////////////////////////////////// Line(hdc, x1..