[SDL] changing Program Icons in a SDL - Application
Jan Kopia
jk.data at gmx.net
Thu Oct 17 04:31:00 PDT 2002
Hello,
To Get the title of the Window you use:
SDL_WM_GetCaption
To Set the title of the Window you use:
SDL_WM_SetCaption
//Getting
char *title;
char *icontitle;
SDL_WM_GetCaption(title, icontitel);
std::cout << "The title is:" << title << std::endl;
std::cout << "The icon title is:" << icontitle << std::endl;
To set window title you can to it this way:
//Setting
const char *window_title = ?windowtitle?;
const char *icon_title = ?icontitle?;
SDL_WM_SetCaption(window_title, icon_title);
To set an Icon you have to use SDL_WM_SetIcon;
SDL_WM_SetIcon(SDL_LoadBMP("icon.bmp"), NULL);
SDL_LoadBMP loads a bitmap and puts as surface into the icon-field.
Jan Kopia
---------------------
Software-Developer
----- Original Message -----
From: <ultrakrazz at gmx.net>
To: <sdl at libsdl.org>
Sent: Thursday, October 17, 2002 12:51 PM
Subject: [SDL] changing Program Icons in a SDL - Application
> Hi there!
>
> I wonder, if it's possible to change the program icon of a
SDL-Application?
> Any ideas?
>
> Thanks in advance!
>
> Greets,
> Philippe
>
> --
> +++ GMX - Mail, Messaging & more http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>
More information about the SDL
mailing list