geekdba Posted June 19, 2008 Share Posted June 19, 2008 I have created a small program using bloodshed dev c++ when the program runs it names the window the path/name of the exe it has been called. Is there a way I can name the windows to like myapp without the rest etc Thanks in advance Quote Link to comment Share on other sites More sharing options...
Sparda Posted June 19, 2008 Share Posted June 19, 2008 What kind of window is this? Quote Link to comment Share on other sites More sharing options...
Steve8x Posted June 19, 2008 Share Posted June 19, 2008 I guess your using a console app, since the name of it is the path... console apps have that behaviour! for setting the title of a console window use: SetConsoleTitle("MyApp"); for example... Quote Link to comment Share on other sites More sharing options...
geekdba Posted June 19, 2008 Author Share Posted June 19, 2008 Cheers I will give that a go Quote Link to comment Share on other sites More sharing options...
geekdba Posted June 20, 2008 Author Share Posted June 20, 2008 That worked a treat Thanks V much Quote Link to comment Share on other sites More sharing options...
K1u Posted June 20, 2008 Share Posted June 20, 2008 For non-console applications use SetWindowText. BOOL SetWindowText( HWND hWnd, LPCTSTR lpString ); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.