J
Johannes Stratmann
we are using a few MFC applications that still have a font problem. In some
tabs or label there is no visible text. I've searched a lot in the NG's and
applied the possible solutions (installing several fonts), but still without
success.
A simple way to reproduce is the 'Hello' Application from the MSDN samples:
..\Samples\VC\MFC\general\hello
This works on a XPpro but not on the XPe image (with german/english mui).
The code used for the output is:
void CMainWindow::OnPaint()
{
CRect rect;
GetClientRect(rect);
CPaintDC dc(this);
dc.SetTextAlign(TA_BASELINE | TA_CENTER);
dc.SetTextColor
:GetSysColor(COLOR_WINDOWTEXT));
dc.SetBkMode(TRANSPARENT);
CString s;
s.LoadString(IDS_HELLO);
dc.TextOut((rect.right / 2), (rect.bottom / 2), s);
}
please help, this 'simple' problem is driving me nuts !
tabs or label there is no visible text. I've searched a lot in the NG's and
applied the possible solutions (installing several fonts), but still without
success.
A simple way to reproduce is the 'Hello' Application from the MSDN samples:
..\Samples\VC\MFC\general\hello
This works on a XPpro but not on the XPe image (with german/english mui).
The code used for the output is:
void CMainWindow::OnPaint()
{
CRect rect;
GetClientRect(rect);
CPaintDC dc(this);
dc.SetTextAlign(TA_BASELINE | TA_CENTER);
dc.SetTextColor

dc.SetBkMode(TRANSPARENT);
CString s;
s.LoadString(IDS_HELLO);
dc.TextOut((rect.right / 2), (rect.bottom / 2), s);
}
please help, this 'simple' problem is driving me nuts !