Hi,
I have problem in setting up font attributes to CStatic control. I have static control where I am setting user name when logged in using SetWindowText. I have trapped mouse hover and changing the color of it. I am handling OnMouseMove,OnMouseHover and OnMouseLeave events. I am drawing text in OnPaint using DrawText / DrawTextEx. But I want to set the font to it and also want to align the text vertically centered. But I am unable to make it.
Pls suggest how to handling Font and Alignment of control text.
DrawTextEx(pDC->GetSafeHdc(),text.GetBuffer(),text.GetLength(),rc,DT_EDITCONTROL | DT_CENTER | DT_VCENTER,NULL);
Regds
SNI