Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
26
Src/Plugins/Input/in_swf/SWFThread.cpp
Normal file
26
Src/Plugins/Input/in_swf/SWFThread.cpp
Normal file
|
@ -0,0 +1,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);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue