randomedit.cpp

来自「手机选中奖号器」· C++ 代码 · 共 49 行

CPP
49
字号
// RandomEdit.cpp : implementation file
//

#include "stdafx.h"
#include "RandomPhone.h"
#include "RandomEdit.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRandomEdit

CRandomEdit::CRandomEdit()
{
}

CRandomEdit::~CRandomEdit()
{
}


BEGIN_MESSAGE_MAP(CRandomEdit, CEdit)
	//{{AFX_MSG_MAP(CRandomEdit)
	ON_WM_CTLCOLOR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRandomEdit message handlers

HBRUSH CRandomEdit::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
	HBRUSH hbr = CEdit::OnCtlColor(pDC, pWnd, nCtlColor);
	
	// TODO: Change any attributes of the DC here

    //if (nCtlColor == CTLCOLOR_EDIT )
      pDC ->SetTextColor (RGB (0, 255 , 0 ) );
	
	// TODO: Return a different brush if the default is not desired
	return hbr;
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?