February 6th, 2003, 11:36 AM
How can I change text in Shell window Title bar?
I use Shell to run some console apps. (VB6)
By default the title bar displays path\app.exe
I would like to change that to something friendlier.
TIA for your help.
Comments on this post
February 7th, 2003, 11:32 AM
If you have the window handle of the process, you should be able to change the title of the window using the SetWindowText api. I've never done it, so I don't have any example code. Take a look at this and see if it helps:
February 7th, 2003, 12:09 PM
Thanks very much.
Looks like it should do the trick.
February 7th, 2003, 01:01 PM
My jump for joy was premature :-(
While I got it to work as per the example with notepad.exe, it doesn't when calling our console app, wordpad.exe or cmd.exe. Opens the progs ok, but no title bar change. That only works with notepad.exe.
Back to the drawing board and still looking for suggestions :-))
TIA - Heinz
February 7th, 2003, 01:41 PM