How to change the text of a static text control?

Posted on 2005-03-09
Medium Priority
Last Modified: 2013-11-20
I'm trying to change the text of a static text control using mfc and VS.NET 2003.

The Controls ID is IDC_STATIC.
Question by:ptrennum
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 30

Accepted Solution

Axter earned 1000 total points
ID: 13496312
Hi ptrennum,
> >The Controls ID is IDC_STATIC.

If you're trying to do this at runtime, then you want to change the ID for the static control.
Change the name to a specific custom name, and then you should be able to crete a control assoicated with it.

David Maisonave :-)

Author Comment

ID: 13496323
Thank you Dave that is what I needed.
LVL 30

Expert Comment

ID: 13496562
Thanks for the points

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question