table of contents
- trixie 3.2.10+ds-1
- testing 3.2.28+ds-1
- unstable 3.2.28+ds-1
- experimental 3.3.6+ds-1
| SDL_RegisterApp(3) | SDL3 FUNCTIONS | SDL_RegisterApp(3) |
NAME¶
SDL_RegisterApp - Register a win32 window class for SDL's use.
SYNOPSIS¶
#include <SDL3/SDL_main.h>
bool SDL_RegisterApp(const char *name, Uint32 style, void *hInst);
DESCRIPTION¶
This can be called to set the application window class at startup. It is safe to call this multiple times, as long as every call is eventually paired with a call to SDL_UnregisterApp, but a second registration attempt while a previous registration is still active will be ignored, other than to increment a counter.
Most applications do not need to, and should not, call this directly; SDL will call it when initializing the video subsystem.
If name is NULL, SDL currently uses (CS_BYTEALIGNCLIENT | CS_OWNDC) for the style, regardless of what is specified here.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns true on success or false on failure; call SDL_GetError() for more information.
AVAILABILITY¶
This function is available since SDL 3.2.0.
| SDL 3.3.6 | Simple Directmedia Layer |