Chromeless app splash screen

Hello,

I have tried GitHub - moebiussurfing/ofxSurfingSplashScreen: openFrameworks addon to trig a faded out splash image to add a splash screen to my OF app.
ofxSurfingSplashScreen is really cool but i would like to have a chromeless splash window with a different size than my app.
Usually splash screens are much smaller than the app.

If succeed in removing the splash chrome by using this in the setup of my ofxSurfingSplashScreen example :

HWND m_hWnd = WindowFromDC(wglGetCurrentDC());
LONG style = ::GetWindowLong(m_hWnd, GWL_STYLE);
style &= ~WS_DLGFRAME;
style &= ~WS_CAPTION;
style &= ~WS_BORDER;
style &= WS_POPUP;

LONG exstyle = ::GetWindowLong(m_hWnd, GWL_EXSTYLE);
exstyle &= ~WS_EX_DLGMODALFRAME;

::SetWindowLong(m_hWnd, GWL_STYLE, style);
::SetWindowLong(m_hWnd, GWL_EXSTYLE, exstyle);

SetWindowPos(m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);

It works, the splash screen has no chrome anymore but i can’t acheive to restore the chrome for my App window.

Nice addon @moebiussurfing !

Thanks a lot

Eviral

Nice you like it @Eviral , you are welcome.

There are some add-ons related to this topic that came to my mind…

This one is outdated, but cool:

This is outdated too, but allowed threaded loading on setup(), to draw startup before ends:

I am not sure what do you mean with chrome, but maybe it’s the window border?
You can try some add-ons that handle the window border, position, full screen etc, using native stuff:

Would be cool also to see that splash window on app exit too…

Maybe the window size could be changed too from:
app opens + window small + fading draw + window to big…
but maybe could look a bit weird/abrupt…

hey @Eviral ,

I added that floating window feature without borders.
~Pull the develop branch if you are interested.~ Only for Windows yet.

Is not perfect bc it’s having some “small flick” on transitions sometimes …

EDIT:

On the armadillu/ofxScreenSetup there are some native commands for borderless on all platforms to copy from if you are interested.

Thanks a lot !

Your are welcome.

For compilation purposes,
I made a gist snippet with a function to handle borderless mode under Windows:

I found also a cool repo with more related features like shadow, lock window move etc: