// [!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(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 }