Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: running a application as service Pin
David Crow1-Jul-09 3:13
David Crow1-Jul-09 3:13 
QuestionError "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
Razanust30-Jun-09 19:37
Razanust30-Jun-09 19:37 
AnswerRe: Error "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
Madhu Nair30-Jun-09 19:43
Madhu Nair30-Jun-09 19:43 
AnswerRe: Error "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
chandu00430-Jun-09 19:44
chandu00430-Jun-09 19:44 
AnswerRe: Error "aggregate'main():: record r' has incomplete type and cannot be defined". ??? Pin
David Crow1-Jul-09 3:39
David Crow1-Jul-09 3:39 
Question880410 - CtlColor Pin
ilostmyid230-Jun-09 19:25
professionalilostmyid230-Jun-09 19:25 
AnswerRe: 880410 - CtlColor Pin
«_Superman_»30-Jun-09 19:52
professional«_Superman_»30-Jun-09 19:52 
AnswerRe: 880410 - CtlColor Pin
Chuck O'Toole30-Jun-09 23:07
Chuck O'Toole30-Jun-09 23:07 
MyEditBox::MyEditBox()
{
	m_brush = NULL;
	itemData = NULL;
}

MyEditBox::~MyEditBox()
{
	delete m_brush;
}

BEGIN_MESSAGE_MAP(MyEditBox, CEdit)
	//{{AFX_MSG_MAP(MyEditBox)
	ON_WM_CTLCOLOR_REFLECT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

bool MyEditBox::SetColorScheme(COLORREF brushColor, COLORREF bgTextColor, COLORREF fgTextColor)
{
	delete m_brush;
	m_brush = new CBrush(brushColor);
	bgc = bgTextColor;
	fgc = fgTextColor;
	Invalidate();
	UpdateWindow();
	return (m_brush != NULL);
}

void MyEditBox::ResetColorScheme()
{
	delete m_brush;
	m_brush = NULL;
	Invalidate();
	UpdateWindow();
}
/////////////////////////////////////////////////////////////////////////////
// MyEditBox message handlers
/////////////////////////////////////////////////////////////////////////////

HBRUSH MyEditBox::CtlColor(CDC* pDC, UINT nCtlColor) 
{
	if (m_brush == NULL)
		return NULL;
//note - if brush and text background color are different, anomalies will occur
	pDC->SetTextColor(fgc);
	pDC->SetBkColor(bgc);
	return (HBRUSH)m_brush->GetSafeHandle();
}

QuestionHow To Dynamically Create and Display CListView object Pin
CodeMacDaddy30-Jun-09 10:24
CodeMacDaddy30-Jun-09 10:24 
QuestionRe: How To Dynamically Create and Display CListView object Pin
David Crow30-Jun-09 10:49
David Crow30-Jun-09 10:49 
AnswerRe: How To Dynamically Create and Display CListView object Pin
CodeMacDaddy8-Jul-09 3:33
CodeMacDaddy8-Jul-09 3:33 
QuestionQuestion! Pin
Razanust30-Jun-09 8:42
Razanust30-Jun-09 8:42 
AnswerRe: Question! [modified] Pin
Nuri Ismail30-Jun-09 9:01
Nuri Ismail30-Jun-09 9:01 
AnswerRe: Question! Pin
thebeekeeper30-Jun-09 9:05
thebeekeeper30-Jun-09 9:05 
GeneralRe: Question! Pin
Luc Pattyn30-Jun-09 10:38
sitebuilderLuc Pattyn30-Jun-09 10:38 
GeneralRe: Question! Pin
thebeekeeper30-Jun-09 10:52
thebeekeeper30-Jun-09 10:52 
AnswerRe: Question! Pin
Stuart Dootson30-Jun-09 9:48
professionalStuart Dootson30-Jun-09 9:48 
AnswerRe: Question! Pin
David Crow30-Jun-09 10:45
David Crow30-Jun-09 10:45 
Questionhow to use inpout32.dll in vc++208 clr project Pin
PIYUSH196630-Jun-09 8:11
PIYUSH196630-Jun-09 8:11 
AnswerRe: how to use inpout32.dll in vc++208 clr project Pin
Sarath C30-Jun-09 9:43
Sarath C30-Jun-09 9:43 
QuestionCreate a C++ dll to be called from JAVA and PHP Pin
Galo Vinueza S.30-Jun-09 7:37
Galo Vinueza S.30-Jun-09 7:37 
AnswerRe: Create a C++ dll to be called from JAVA and PHP Pin
Stuart Dootson30-Jun-09 9:43
professionalStuart Dootson30-Jun-09 9:43 
QuestionVS and Qt linking differences Pin
thebeekeeper30-Jun-09 7:16
thebeekeeper30-Jun-09 7:16 
AnswerRe: VS and Qt linking differences Pin
Stuart Dootson30-Jun-09 9:29
professionalStuart Dootson30-Jun-09 9:29 
QuestionConstructing and Accessing a RecordSet from COM in C++ Pin
BeerFizz30-Jun-09 5:14
BeerFizz30-Jun-09 5:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.