[MFC] 메세지 맵, 상단 메뉴 사용 등
190716-1 .h #pragma once #include class CClientDCU : public CDC { HDC m_hDCu; HWND m_hWndu; public: CClientDCU(CWnd* pWnd); ~CClientDCU(); void Ellipse(int x1, int y1, int x2, int y2)const; }; .cpp #include "pch.h" #include "CClientDCU.h" CClientDCU::CClientDCU(CWnd* pWnd) { m_hWndu = pWnd->m_hWnd; m_hDCu = ::GetDC(m_hWndu); } CClientDCU::~CClientDCU() { ::ReleaseDC(m_hWndu, m_hDCu); } void CCli..
MFC
2019. 9. 24. 16:47