SDL_WM_SetCaption
Iam trying to use SDL_WM_SetCaption("Hello World", NULL);. but the title is still saying SDL_app.I am running windows 98.
Just Get the windows handel from SDL i am fairly sure there is a function for it and use SendWindowMessage() Check it up on MSDN.com
or you could go like this
HWND fWindow; // Window handle of the window you want to get
fWindow = FindWIndow(NULL, "Text_Of_Window_To_Find");
SetWindowText(fWindow,"Text to be..");
Check out SetWindowText() on msdn as well. This one takes the windows handel and the text to be displayed.
Regards Jouei.
or you could go like this
HWND fWindow; // Window handle of the window you want to get
fWindow = FindWIndow(NULL, "Text_Of_Window_To_Find");
SetWindowText(fWindow,"Text to be..");
Check out SetWindowText() on msdn as well. This one takes the windows handel and the text to be displayed.
Regards Jouei.
Quote:Original post by mattnenterprise
Iam trying to use SDL_WM_SetCaption("Hello World", NULL);. but the title is still saying SDL_app.I am running windows 98.
Perhaps you could paste some code? It's hard to say why this wouldn't work, really. It's not something I've seen many problems with.
A little while ago I had a similar problem. I believe I was calling the function before initializing SDL, so it did nothing. It was a silly mistake, but just in case you did it to, I thought I would let you know.
Good luck,
Svenjamin
Good luck,
Svenjamin
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement