API 도형 그리기
#include #include // LRESULT == 32bit 정수형LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam , LPARAM lParam){HDC hdc;// handle device contextPAINTSTRUCT ps;char str[256] = "Hello API"; int x,y,kd;double r;int h = 50; switch(message){case WM_PAINT:hdc = BeginPaint(hWnd,&ps); // GetDCOutputDebugString("WM_PAINT"); // rectangleRectangle(hdc,100,100,200,200); // tri angleMoveToEx(hdc,35..
더보기