IsoPaintThread.cpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. FinalSun/FinalAlert 2 Mission Editor
  3. Copyright (C) 1999-2024 Electronic Arts, Inc.
  4. Authored by Matthias Wagner
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. // IsoPaintThread.cpp: Implementierungsdatei
  17. //
  18. #include "stdafx.h"
  19. #include "finalsun.h"
  20. #include "IsoPaintThread.h"
  21. #include "variables.h"
  22. #ifdef _DEBUG
  23. #define new DEBUG_NEW
  24. #undef THIS_FILE
  25. static char THIS_FILE[] = __FILE__;
  26. #endif
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CIsoPaintThread
  29. IMPLEMENT_DYNCREATE(CIsoPaintThread, CWinThread)
  30. CIsoPaintThread::CIsoPaintThread()
  31. {
  32. }
  33. CIsoPaintThread::~CIsoPaintThread()
  34. {
  35. }
  36. BOOL CIsoPaintThread::InitInstance()
  37. {
  38. // ZU ERLEDIGEN: Initialisierungen für jeden Thread hier durchführen
  39. while(TRUE)
  40. {
  41. // this worker thread just updates the main window
  42. ((CFinalSunDlg*)theApp.GetMainWnd())->m_view.m_isoview->UpdateWindow();
  43. }
  44. return TRUE;
  45. }
  46. int CIsoPaintThread::ExitInstance()
  47. {
  48. // ZU ERLEDIGEN: Bereinigungen für jeden Thread hier durchführen
  49. return CWinThread::ExitInstance();
  50. }
  51. BEGIN_MESSAGE_MAP(CIsoPaintThread, CWinThread)
  52. //{{AFX_MSG_MAP(CIsoPaintThread)
  53. // HINWEIS - Der Klassen-Assistent fügt hier Zuordnungsmakros ein und entfernt diese.
  54. //}}AFX_MSG_MAP
  55. END_MESSAGE_MAP()
  56. /////////////////////////////////////////////////////////////////////////////
  57. // Behandlungsroutinen für Nachrichten CIsoPaintThread