Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

winsplash.cpp File Reference

#include "winsplash.h"
#include <string>
#include <winuser.h>
#include <commctrl.h>
#include "res/resource.h"
#include <iostream>

Include dependency graph for winsplash.cpp:

Go to the source code of this file.

Defines

#define LWA_ALPHA   2
#define LWA_COLORKEY   1
#define ULW_ALPHA   2
#define ULW_COLORKEY   1
#define ULW_OPAQUE   4
#define WS_EX_LAYERED   0x00080000

Typedefs

typedef COLORREF BYTE bAlpha
typedef COLORREF cr
typedef HDC POINT SIZE HDC
POINT COLORREF 
crKey
typedef COLORREF BYTE DWORD dwFlags
typedef HDC hdcDst
typedef HDC POINT SIZE HDC hdcSrc
typedef HDC POINT SIZE HDC
POINT COLORREF BLENDFUNCTION * 
pblend
typedef HDC POINT * pptDst
typedef HDC POINT SIZE HDC
POINT * 
pptSrc
typedef HDC POINT SIZE * psize

Functions

typedef BOOL (WINAPI *lpfnSetLayeredWindowAttributes)(HWND hWnd
static LRESULT CALLBACK SplashWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

Variables

lpfnSetLayeredWindowAttributes winSetLayeredWindowAttributes = NULL
lpfnUpdateLayeredWindow winUpdateLayeredWindow = NULL


Define Documentation

#define LWA_ALPHA   2
 

Definition at line 36 of file winsplash.cpp.

#define LWA_COLORKEY   1
 

Definition at line 35 of file winsplash.cpp.

#define ULW_ALPHA   2
 

Definition at line 39 of file winsplash.cpp.

Referenced by SplashWindow::updateWindow().

#define ULW_COLORKEY   1
 

Definition at line 38 of file winsplash.cpp.

#define ULW_OPAQUE   4
 

Definition at line 40 of file winsplash.cpp.

#define WS_EX_LAYERED   0x00080000
 

Definition at line 34 of file winsplash.cpp.

Referenced by SplashWindow::createWindow().


Typedef Documentation

typedef COLORREF BYTE bAlpha
 

Definition at line 25 of file winsplash.cpp.

typedef COLORREF cr
 

Definition at line 25 of file winsplash.cpp.

typedef HDC POINT SIZE HDC POINT COLORREF crKey
 

Definition at line 27 of file winsplash.cpp.

typedef HDC POINT SIZE HDC POINT COLORREF BLENDFUNCTION DWORD dwFlags
 

Definition at line 25 of file winsplash.cpp.

typedef HDC hdcDst
 

Definition at line 27 of file winsplash.cpp.

typedef HDC POINT SIZE HDC hdcSrc
 

Definition at line 27 of file winsplash.cpp.

typedef HDC POINT SIZE HDC POINT COLORREF BLENDFUNCTION* pblend
 

Definition at line 27 of file winsplash.cpp.

typedef HDC POINT* pptDst
 

Definition at line 27 of file winsplash.cpp.

typedef HDC POINT SIZE HDC POINT* pptSrc
 

Definition at line 27 of file winsplash.cpp.

typedef HDC POINT SIZE* psize
 

Definition at line 27 of file winsplash.cpp.


Function Documentation

typedef BOOL WINAPI *  lpfnSetLayeredWindowAttributes  ) 
 

static LRESULT CALLBACK SplashWndProc HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam
[static]
 

Definition at line 43 of file winsplash.cpp.

References SplashWindow::windowProc().

Referenced by SplashWindow::createWindow().

00044 {
00045     static SplashWindow *splash = NULL;
00046     
00047     if (uMsg == WM_CREATE)
00048     {
00049         splash = reinterpret_cast<SplashWindow*>(reinterpret_cast<CREATESTRUCT*>(lParam)->lpCreateParams);
00050     }
00051     
00052     if (splash)
00053         return splash->windowProc(hwnd, uMsg, wParam, lParam);
00054     else
00055         return DefWindowProc(hwnd, uMsg, wParam, lParam);
00056 }


Variable Documentation

lpfnSetLayeredWindowAttributes winSetLayeredWindowAttributes = NULL
 

Definition at line 31 of file winsplash.cpp.

Referenced by SplashWindow::init().

lpfnUpdateLayeredWindow winUpdateLayeredWindow = NULL
 

Definition at line 32 of file winsplash.cpp.

Referenced by SplashWindow::init(), and SplashWindow::updateWindow().


Generated on Sat Jan 14 22:32:35 2006 for Celestia by  doxygen 1.4.1