// Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). // SPDX-License-Identifier: BSD-3-Clause // childview.cpp : implementation of the ChildView class // #include "stdafx.h" #include "qtmfc.h" #include "childview.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // ChildView ChildView::ChildView() { } ChildView::~ChildView() { } BEGIN_MESSAGE_MAP(ChildView,CWnd ) //{{AFX_MSG_MAP(ChildView) ON_WM_PAINT() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // ChildView message handlers BOOL ChildView::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), HBRUSH(COLOR_WINDOW+1), NULL); return TRUE; } void ChildView::OnPaint() { CPaintDC dc(this); // device context for painting // Do not call CWnd::OnPaint() for painting messages }