Hi all<br>I am trying to set a text color to red and keep getting black, this also happens when I try to create a pen in red. Is this a palette fault? If not anyone know what it is?<br><br>Thanks<br><br>Barry
Hi Pete,<br>Thanks for the reply, the code is below<br><br><br><br>BOOL CFix:rawFix(CDC* pDC)<br>{<br> CPen penFix;<br> int crad = 4;<br><br> if (!penFix.CreatePen(PS_SOLID, 1, RGB(256,0,0)))<br> return FALSE;<br> CPen* pOldPen = pDC->SelectObject( &penFix );<br> int crx1 = m_pointArray[0].x - crad;<br> int cry1 = m_pointArray[0].y + crad;<br> int crx2 = m_pointArray[0].x ;<br> int cry2 = m_pointArray[0].y - crad;<br> int crx3 = m_pointArray[0].x + crad;<br> int cry3 = m_pointArray[0].y + crad;<br> int crx4 = m_pointArray[0].x - crad;<br> int cry4 = m_pointArray[0].y - crad;<br><br> if (m_sIdLabel !=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.