cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
VC++ problem, please guide me
VC++ problem, please guide me
Apr 1, 2010 at 9:41am UTC
lqq889
(1)
can anyone please help me to check the below codings see got any error,why i can not show the red color if i change the name? the purpose of the below coding is to check if got any changes must be reflected in red, otherwise is black.
buf=GetJobItem(tmpJobNew,1);
buf.TrimRight();
if(buf.GetLength()>0)
{
if((tmpJobNew.wOfferMask & 0x4000) != 0)
{
dc.SetTextColor(RED);
}
else
{
dc.SetTextColor(BLACK);
}
dc.ExtTextOut(leftStart,topStart,ETO_OPAQUE,NULL, _T("Name:"), NULL);
tmp=GetJobItem(tmpJobNew, 2);
//tmp.TrimRight();
if (tmp.GetLength()>0)
{
tmp.Format(_T(" (%s)"),tmpJobNew);
//buf+=_T(", ");
buf=buf+tmp;
}
#if defined(IVD_SAPPHIRE)
dc.ExtTextOut(50+leftStart,topStart,ETO_OPAQUE,NULL,buf, NULL);
#else
dc.ExtTextOut(100+leftStart,topStart,ETO_OPAQUE,NULL,buf, NULL);
#endif
topStart=topStart+nHeight;
}
Topic archived. No new replies allowed.