Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No name in taskbar...

Status
Not open for further replies.

Calder2

Programmer
Jan 10, 2004
6
SE
Hi!
I've created a dialogbased program in VC++ without a titlebar (and no caption). When I run the program I get no name in the taskbar, just an empty space...

How can I name my program without using Properties/Caption on the dialog?
 
The name of the exe file is one thing and the title of a window is another thing. You cannot change it using a command line after you produced your exe unless you coded this feature in the application.
For example: when you click with the right mouse button on the dialog you will ask the name of the dialog and you can change it at run time.
If you dont't have access to the Visual Studio -> Resource editor then you could assign a caption for the dialog by modifing the .rc file using a text editor, notepad for instance.
Locate the IDD_appname_DIALOG DIALOGEX ... which correspond to your dialog and there there is an CAPTION entry.
Set it to the name you want:
CAPTION "My First Dialog"

-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top