// [!output WND_VIEW_IMPL] : implementazione della classe [!output WND_VIEW_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]() { } [!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() // gestori di messaggi [!output WND_VIEW_CLASS] BOOL [!output WND_VIEW_CLASS]::PreCreateWindow(CREATESTRUCT& cs) { if (!CWnd::PreCreateWindow(cs)) return FALSE; 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); // contesto di periferica per il disegno // TODO: aggiungere qui il codice per la gestione dei messaggi. // Non chiamare CWnd::OnPaint() per i messaggi relativi al disegno. }