[!if RIBBON_TOOLBAR] // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface // (the "Fluent UI") and is provided only as referential material to supplement the // Microsoft Foundation Classes Reference and related electronic documentation // included with the MFC C++ library software. // License terms to copy, use or distribute the Fluent UI are available separately. // To learn more about our Fluent UI licensing program, please visit // https://go.microsoft.com/fwlink/?LinkId=238214. // // Copyright (C) Microsoft Corporation // All rights reserved. [!endif] // $wndviewimpl$ : implementation of the $wndviewclass$ class // #include "pch.h" #include "framework.h" #include "$appheader$" #include "$wndviewheader$" #ifdef _DEBUG #define new DEBUG_NEW #endif // $wndviewclass$ $wndviewclass$::$wndviewclass$() { [!if ACCESSIBILITY] EnableActiveAccessibility(); [!endif] } $wndviewclass$::~$wndviewclass$() { } BEGIN_MESSAGE_MAP($wndviewclass$, $wndviewbaseclass$) ON_WM_PAINT() END_MESSAGE_MAP() // $wndviewclass$ message handlers BOOL $wndviewclass$::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(nullptr, IDC_ARROW), reinterpret_cast(COLOR_WINDOW+1), nullptr); return TRUE; } void $wndviewclass$::OnPaint() { CPaintDC dc(this); // device context for painting // TODO: Add your message handler code here // Do not call CWnd::OnPaint() for painting messages }