목록windows 콘솔 그림 (1)
영넌 개발로그

: 윈도우즈에서 콘솔창에 그림그리기 위한 헤더 class 이름 : MY_CIRCLE do_draw() : Ellipse(타원) 그리기 #include #include class MY_CIRCLE { public: int left, right, top, bottom; //좌우상하 좌표 MY_CIRCLE(int l, int t, int r, int b) : left(l), top(t), right(r), bottom(b) { } void do_draw() { HDC hdc = GetWindowDC(GetForegroundWindow()); Ellipse(hdc, left, top, right, bottom); } MY_CIRCLE Clone() { return *this; } MY_CIRCLE& CloneR..
코딩/C++
2020. 10. 26. 06:10