btminzon
Full Member level 2
Hi,
I´m beginning to program using Visual C++. I´m doing some test using MFC and Static Text. I used the ClassWizard to create a variable associated with this static text (st). My ST is defined as IDC_EIXOX and the variable as m_valorX. I want that when i left clik over a button, the value, let´s say, "0.000" apear in the static text:
void XYZ::OnHalfY()
{
m_valorY = "0.000"
UpdateData(FALSE);
}
And Ok, the Text appear. But the ST control i defined larger, and the text "0.000" appear so small. Here the question: how can i set the font and the size used in Static Text? I want that the text "0.000" occupy the hole Static Text area.
thanks for the help
I´m beginning to program using Visual C++. I´m doing some test using MFC and Static Text. I used the ClassWizard to create a variable associated with this static text (st). My ST is defined as IDC_EIXOX and the variable as m_valorX. I want that when i left clik over a button, the value, let´s say, "0.000" apear in the static text:
void XYZ::OnHalfY()
{
m_valorY = "0.000"
UpdateData(FALSE);
}
And Ok, the Text appear. But the ST control i defined larger, and the text "0.000" appear so small. Here the question: how can i set the font and the size used in Static Text? I want that the text "0.000" occupy the hole Static Text area.
thanks for the help