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"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.