00001 /* LoadingWindow_Win32 - Loading window using a Windows dialog */ 00002 00003 #ifndef LOADING_WINDOW_WIN32_H 00004 #define LOADING_WINDOW_WIN32_H 00005 00006 #include "LoadingWindow.h" 00007 #include <windows.h> 00008 #include "../../archutils/Win32/AppInstance.h" 00009 00010 class LoadingWindow_Win32: public LoadingWindow { 00011 AppInstance handle; 00012 HWND hwnd; 00013 CString text[3]; 00014 00015 static BOOL CALLBACK WndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ); 00016 00017 public: 00018 00019 LoadingWindow_Win32(); 00020 ~LoadingWindow_Win32(); 00021 00022 void SetText(CString str); 00023 void Paint(); 00024 }; 00025 00026 #define HAVE_LOADING_WINDOW_WIN32 00027 00028 #endif 00029 00030 /* 00031 * (c) 2002-2004 Glenn Maynard 00032 * All rights reserved. 00033 * 00034 * Permission is hereby granted, free of charge, to any person obtaining a 00035 * copy of this software and associated documentation files (the 00036 * "Software"), to deal in the Software without restriction, including 00037 * without limitation the rights to use, copy, modify, merge, publish, 00038 * distribute, and/or sell copies of the Software, and to permit persons to 00039 * whom the Software is furnished to do so, provided that the above 00040 * copyright notice(s) and this permission notice appear in all copies of 00041 * the Software and that both the above copyright notice(s) and this 00042 * permission notice appear in supporting documentation. 00043 * 00044 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00045 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00046 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00047 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00048 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00049 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00050 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00051 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00052 * PERFORMANCE OF THIS SOFTWARE. 00053 */ 00054