오전 9:49 2000-04-15
CDC 조경민
==================================================================
MemoryDC 만들기
-----------------------------------------------------------------
CDC m_MDC;
CDC* pDC = GetDC();
m_MDC.CreateCompatibleDC( NULL );
CBitmap bit;
bit.CreateCompatibleBitmap( &pDC, 100, 100 );
m_MDC.SelectObject( &bit);
m_MDC.BeginPath();
m_MDC.Ellipse( 0, 20,100,50 );
m_MDC.EndPath();
m_MDC.FillPath();
bit.DeleteObject();
ReleaseDC(pDC);
:
void CTestDCPathDlg::OnPaint()
{
CPaintDC dc(this);
dc.BitBlt( 0, 0 , 100, 100, &m_MDC, 0,0, MERGEPAINT );
MSDN
HDC memDC = CreateCompatibleDC ( hDC );
HBITMAP memBM = CreateCompatibleBitmap ( hDC );
SelectObject ( memDC, memBM );
CDC 조경민
==================================================================
MemoryDC 만들기
-----------------------------------------------------------------
CDC m_MDC;
CDC* pDC = GetDC();
m_MDC.CreateCompatibleDC( NULL );
CBitmap bit;
bit.CreateCompatibleBitmap( &pDC, 100, 100 );
m_MDC.SelectObject( &bit);
m_MDC.BeginPath();
m_MDC.Ellipse( 0, 20,100,50 );
m_MDC.EndPath();
m_MDC.FillPath();
bit.DeleteObject();
ReleaseDC(pDC);
:
void CTestDCPathDlg::OnPaint()
{
CPaintDC dc(this);
dc.BitBlt( 0, 0 , 100, 100, &m_MDC, 0,0, MERGEPAINT );
MSDN
HDC memDC = CreateCompatibleDC ( hDC );
HBITMAP memBM = CreateCompatibleBitmap ( hDC );
SelectObject ( memDC, memBM );
'KB > MFC/Win32' 카테고리의 다른 글
MDI에서 메뉴가 모두 활성일때 (0) | 2004.03.19 |
---|---|
다국어 지원 하기 Resource DLL (0) | 2004.03.19 |
ASP 업로드 컴포넌트 만들기 (0) | 2004.03.19 |
파레트 in MemoryDC 비트맵 (0) | 2004.03.19 |
트리 에디트 가능하게 하기 (0) | 2004.03.19 |