HelpDialog.cpp

 // HelpDialog.cpp : implementation file
//

#include "stdafx.h"
#include "VisualBCutter.h"
#include "HelpDialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// HelpDialog dialog


CHelpDialog::CHelpDialog(CWnd* pParent /*=NULL*/)
: CDialog(CHelpDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CHelpDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}


void CHelpDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CHelpDialog)
DDX_Control(pDX, IDC_EDIT1, m_cEdit);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CHelpDialog, CDialog)
//{{AFX_MSG_MAP(CHelpDialog)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// HelpDialog message handlers

BOOL CHelpDialog::OnInitDialog()
{
CDialog::OnInitDialog();

SetDlgItemText(IDC_EDIT1,"Test");

return TRUE;  // return TRUE unless you set the focus to a control
              // EXCEPTION: OCX Property Pages should return FALSE
}

void CHelpDialog::OnPaint()
{
CDC* dc = m_cEdit.GetDC();
CRect rect;

m_cEdit.GetClientRect(rect);
CBrush yellowBrush(RGB(238,232,170));
CBrush* oldBrush = dc->SelectObject(&yellowBrush);

dc->Rectangle(rect);
dc->SelectObject(oldBrush);
//m_cEdit

// Do not call CDialog::OnPaint() for painting messages
}

Project Homepage: