Develop and Download Open Source Software

Browse CVS Repository

Contents of /enbanfukusyaya/EnbanKensa/win32/GraphicDraw.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Fri Apr 29 15:57:17 2005 UTC (18 years, 11 months ago) by bananajinn
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-c++src
*** empty log message ***

1 // GraphicDraw.cpp : インプリメンテーション ファイル
2 //
3
4 #include "stdafx.h"
5 #include "EnbanKensa.h"
6 #include "GraphicDraw.h"
7 #include "EnbanKensaDlg.h"
8
9 #ifdef _DEBUG
10 #define new DEBUG_NEW
11 #undef THIS_FILE
12 static char THIS_FILE[] = __FILE__;
13 #endif
14
15 /////////////////////////////////////////////////////////////////////////////
16 // CGraphicDraw
17
18 CGraphicDraw::CGraphicDraw()
19 {
20 }
21
22 CGraphicDraw::~CGraphicDraw()
23 {
24 }
25
26
27 BEGIN_MESSAGE_MAP(CGraphicDraw, CStatic)
28 //{{AFX_MSG_MAP(CGraphicDraw)
29 ON_WM_PAINT()
30 //}}AFX_MSG_MAP
31 END_MESSAGE_MAP()
32
33 /////////////////////////////////////////////////////////////////////////////
34 // CGraphicDraw メッセージ ハンドラ
35
36 void CGraphicDraw::OnPaint()
37 {
38 CPaintDC dc(this); // 描画用のデバイス コンテキスト
39
40 // TODO: この位置にメッセージ ハンドラ用のコードを追加してください
41 RECT rcUpdate;
42 HDC hDC = ((CEnbanKensaDlg *)GetParent())->GetDrawableDC();
43
44 CopyRect(&rcUpdate, &dc.m_ps.rcPaint);
45 ::BitBlt(dc.m_hDC, rcUpdate.left, rcUpdate.top,
46 rcUpdate.right-rcUpdate.left, rcUpdate.bottom-rcUpdate.top,
47 hDC, rcUpdate.left, rcUpdate.top, SRCCOPY);
48
49 // 描画用メッセージとして CStatic::OnPaint() を呼び出してはいけません
50 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26