1
0

SWFThread.cpp 502 B

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