I am writing a MFC application and would like to change the font size of some of the static text. So I use the following.

CFont m_font;
	m_font.CreatePointFont(120,"Times New Roman");
	m_Test.SetFont(&m_font);
	m_Test.SetWindowText(strTest);

Now my question is, how to I get the layout editor in Microsoft Visual C++ to look the same so I know how big to make my static text box? (Other than trial and error)

Recommended Answers

All 3 Replies

Check out this MFC control:)

Now is there any way to get that to show up while editing the layout in visual C++?

No, there are many things you can't see at design time. You might google for another resource editor which might have what you want, but I doubt that you will find one.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.