blob: 510cb8b1026a6ca57c53d5f7c077193bd3eec3a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "main.h"
#include "api.h"
#include "SWFContainer.h"
SWFContainer *activeContainer=0;
WNDPROC oldVidProc=0;
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
PAINTSTRUCT ps;
HDC hdc;
switch (message)
{
case WM_SIZE:
activeContainer->SyncSizeToWindow(hWnd);
break;
case WM_ERASEBKGND:
return 1;
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
EndPaint(hWnd, &ps);
break;
}
return CallWindowProc(oldVidProc, hWnd, message, wParam, lParam);
}
|