Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Simple question about Visual C++

Status
Not open for further replies.

btminzon

Full Member level 2
Full Member level 2
Joined
Jun 12, 2006
Messages
122
Helped
9
Reputation
18
Reaction score
1
Trophy points
1,298
Location
Brazil
Activity points
2,140
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top