: case WM_PAINT:
: hdc = BeginPaint(hWnd, &ps);
: // TODO: 여기에 그리기 코드를 추가합니다.
:
: Rectangle(hdc, rtBoard.left, rtBoard.top, rtBoard.right,rtBoard.bottom);
:
:
: x = rtBoard.left+ nWidth*ix;
: y = rtBoard.top + nHeight*iy;
:
: // Ellipse(hdc, x, y, x+nWidth, y+nHeight);
:
:
: for(i=0 ; i<=N; i++)
: {
: x = rtBoard.left+ nWidth*i;
: MoveToEx(hdc,x,rtBoard.top, NULL);
: LineTo(hdc, x, rtBoard.bottom);
: }
//--------- 추가 --------
for( i = 0; i <=N; ++i)
{
x = rtBoard.left+ nHeight*i;
: MoveToEx(hdc,rtBoard.left, y, NULL);
: LineTo(hdc, rtBoard.right, y);
: }
:
: EndPaint(hWnd, &ps);
: break;
|