wndview.cpp
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
- // [!output WND_VIEW_IMPL] : implementation of the [!output WND_VIEW_CLASS] class
- //
- #include "stdafx.h"
- #include "[!output APP_HEADER]"
- #include "[!output WND_VIEW_HEADER]"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- // [!output WND_VIEW_CLASS]
- [!output WND_VIEW_CLASS]::[!output WND_VIEW_CLASS]()
- {
- [!if ACCESSIBILITY]
- EnableActiveAccessibility();
- [!endif]
- }
- [!output WND_VIEW_CLASS]::~[!output WND_VIEW_CLASS]()
- {
- }
- BEGIN_MESSAGE_MAP([!output WND_VIEW_CLASS], [!output WND_VIEW_BASE_CLASS])
- ON_WM_PAINT()
- END_MESSAGE_MAP()
- // [!output WND_VIEW_CLASS] message handlers
- BOOL [!output WND_VIEW_CLASS]::PreCreateWindow(CREATESTRUCT& cs)
- {
- if (!CWnd::PreCreateWindow(cs))
- return FALSE;
- cs.dwExStyle |= WS_EX_CLIENTEDGE;
- cs.style &= ~WS_BORDER;
- cs.lpszClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_DBLCLKS,
- ::LoadCursor(NULL, IDC_ARROW), reinterpret_cast<HBRUSH>(COLOR_WINDOW+1), NULL);
- return TRUE;
- }
- void [!output WND_VIEW_CLASS]::OnPaint()
- {
- CPaintDC dc(this); // device context for painting
- // TODO: Add your message handler code here
- // Do not call CWnd::OnPaint() for painting messages
- }