Solved

Dialog Caption

Posted on 2004-08-25
3
465 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
[X]
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
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

717 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