No window bar SDL C++ application

c++, eclipse, excel, graphics, sdl

Solution

For SDL 1.x, pass `SDL_NOFRAME` in the flags argument of `SDL_SetVideoMode`.

SDL_Surface * window = SDL_SetVideoMode(width, height, bpp, flags | SDL_NOFRAME);

For SDL 2.x, use `SDL_WINDOW_BORDERLESS` in the flags argument of `SDL_CreateWindow`.

SDL_Window * window = SDL_CreateWindow(title, x, y, width, height, flags | SDL_WINDOW_BORDERLESS);

Problem

Usually when somebody opens a program, like eclipse, or word, or excel, before the program start a small little window without window bar is shown (where the quit button is for example). How I do it in C++ with SDL? I know how to make an standard window but not how to make a window without window bar

Original source