Discussion:
Name of app without title bar in taskbar
(too old to reply)
MariusVE
2010-12-20 14:06:39 UTC
Permalink
Hi All,

I have a MFC dialog-based application that has no title bar. Instead
of handling NCPAINT, the programmer chose to disable the title bar of
the application and basically draw the title bar in the client area of
the dialog (the upper portion of it).

The problem now is that all controls and everything in this
application are designed taking this into consideration. Changing this
would be a pretty big task.

The problem is that, since the application has no title bar, when it
runs, the taskbar only shows its icon and, of course, no name. This
application's tab basically only contains the icon associated with
the .exe file.

Is there a way to provide a name for this application even though it
has no title bar ?

Thanks!
ScottMcP [MVP]
2010-12-20 14:45:33 UTC
Permalink
Post by MariusVE
Is there a way to provide a name for this application even though it
has no title bar ?
Thanks!
Use SetWindowText on the dialog to set the name for the application.
That name will appear on the taskbar even though the title bar is not
painted.
MariusVE
2010-12-20 15:13:32 UTC
Permalink
Post by ScottMcP [MVP]
Post by MariusVE
Is there a way to provide a name for this application even though it
has no title bar ?
Thanks!
Use SetWindowText on the dialog to set the name for the application.
That name will appear on the taskbar even though the title bar is not
painted.
That worked! Thanks a lot for your help Scott!

Loading...