-
Create a new bitmap resource in your project, name it IDB_SPLASHWINDOW. Include the header:
#include "SplashWindow.h"
-
Instance the class (as member variable of the application class or as local variable
during the the main message loop)
CSplashWindow SplashWindow;
-
Show the window (you get the applictions instance with (HINSTANCE)GetModuleHandle(0) or AfxGetInstanceHandle(),
the parent window handle is not neccessary, start with 4000 milliseconds):
SplashWindow.Create(hInstance,hParentWindow,IDB_SPLASHWINDOW,dwShowMilliseconds);
-
If neccessary :
SplashWindow.Create(hInstance,hParentWindow,IDB_SPLASHWINDOW,dwShowMilliseconds);