Solved

Dialog Caption

Posted on 2004-08-25
3
458 Views
Last Modified: 2012-06-27
How do I set the title of a dialog window programmatically?

I'm creating a win32 app (no mfc) using MSVS 6.0

The dialog itself was included as a resource, but I need to change the

title of the dialog based on the value of a certain flag.

I'm sure there is an easy solution, but for the life of me I can't find it.

-CPOsosky







0
Comment
Question by:CPOsosky
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
SteH earned 50 total points
Comment Utility
Have you tried SetWindowText ("Tilte 1")?
0
 

Author Comment

by:CPOsosky
Comment Utility
OK. That was way too easy. Now I feel like an idiot.

Thanks!

-Chris
0
 
LVL 13

Expert Comment

by:SteH
Comment Utility
Very question has an easy answer if one knows it. An idiot would be someone not asking the question because the answer could be to easy.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now