Solved

Dialog Caption

Posted on 2004-08-25
3
460 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
ID: 11892815
Have you tried SetWindowText ("Tilte 1")?
0
 

Author Comment

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

Thanks!

-Chris
0
 
LVL 13

Expert Comment

by:SteH
ID: 11893000
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

809 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