SDDC_Driver
Loading...
Searching...
No Matches
SplashWindow.h
1#ifndef SPLASHWINDOW_H
2#define SPLASHWINDOW_H
3
4#include "framework.h"
5
6//
7// some idea and code from http://freesourcecode.net/cprojects/91599/Win32-splash-screen-in-c#.WmMV3KjiaUk
8// downgrade and modification by ik1xpv 2018
9
11{
12public:
13 SplashWindow ();
15 //Shows the splash screen forever till destroySplashWindow ()
16 void showWindow ();
17 bool createSplashWindow (HINSTANCE hinst, LPCSTR bitmapFileName, const int r, const int g, const int b);
18 bool createSplashWindow (HINSTANCE hinst, DWORD bitmapResourceID, const int r, const int g, const int b);
19 void destroySplashWindow ();
20
21private:
22 bool isValidWindow () const;
23 bool createWindowHelper (const int r, const int g, const int b);
24 //sets all data members to 0.
25 void clearMembers ();
26 //window handle
27 HWND mHWND;
28 //Splash Window image information
29 HBITMAP mBitmap;
30 int mBitmapWidth;
31 int mBitmapHeight;
32
33};
34
35
36#endif
Definition SplashWindow.h:11