ExtTextOut background

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I'm using some windows functions in a graphical application. I'm trying
to draw a text and set a background but it doesn't works.

This is my simple code:

IntPtr m_hBrush=CreateSolidBrush(0x0000FF);
IntPtr m_hOldBursh=SelectObject(m_hDC,m_hBrush);

ExtTextOut(m_hDC, iX, iY, 2, IntPtr.Zero,
sText,Convert.ToUInt16,sText.Length), IntPtr.Zero);

SelectObject(m_hDC,m_hOldBursh);

The problem is the text appair but with white background and not red
background.

CreateSolidBrush and SelectObject functions seems to be ok because I'm using
them in other part of the code without problem.

Anyone can help me ? Do you know if this is a limitation of CF or not ?

Thank you in advance.

Keven Corazza
 
Back
Top