[sword-svn] r74 - trunk/src/gui

dtrotzjr at www.crosswire.org dtrotzjr at www.crosswire.org
Sun Dec 23 15:07:55 MST 2007


Author: dtrotzjr
Date: 2007-12-23 15:07:54 -0700 (Sun, 23 Dec 2007)
New Revision: 74

Modified:
   trunk/src/gui/Main.cpp
   trunk/src/gui/resource.h
Log:
Added a busy/wait icon at the startup of the application.

Modified: trunk/src/gui/Main.cpp
===================================================================
--- trunk/src/gui/Main.cpp	2007-12-23 16:24:25 UTC (rev 73)
+++ trunk/src/gui/Main.cpp	2007-12-23 22:07:54 UTC (rev 74)
@@ -27,7 +27,10 @@
 	bool ignoreMsgs = false;
 	DWORD ignoreTill = GetTickCount();
 
-	g_tMain = GetCurrentThreadId();
+	// Some visual indication things are taking place...
+	HCURSOR hOldCursor = SetCursor(LoadCursor(NULL, IDC_WAIT));
+	
+	 g_tMain = GetCurrentThreadId();
 	// Perform application initialization:
 	if (!InitInstance (hInstance, nCmdShow)) 
 	{
@@ -35,6 +38,8 @@
 	}
 
 	hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_BIBLEREADER);
+	// Turn off the wait icon...
+	SetCursor(hOldCursor);
 	// Main message loop:
 	while (GetMessage(&msg, NULL, 0, 0)) 
 	{

Modified: trunk/src/gui/resource.h
===================================================================
--- trunk/src/gui/resource.h	2007-12-23 16:24:25 UTC (rev 73)
+++ trunk/src/gui/resource.h	2007-12-23 22:07:54 UTC (rev 74)
@@ -33,6 +33,7 @@
 #define MENU_TEXT2                      40032
 #define IDS_CAP_TE2                     40034
 #define MENU_ABOUT                      40035
+#define IDS_CAP_TEXT2                   40036
 #define USERBUTTONS                     41000
 
 // Next default values for new objects




More information about the sword-cvs mailing list