Subversion Repositories Games.Chess Giants

Rev

Rev 1 | Rev 74 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 14
Line 59... Line 59...
59
 
59
 
60
 
60
 
61
static int CALLBACK DialogProc_ThisDialog (HWND hWnd, unsigned int message, WPARAM wParam, LPARAM lParam)
61
static int CALLBACK DialogProc_ThisDialog (HWND hWnd, unsigned int message, WPARAM wParam, LPARAM lParam)
62
{
62
{
63
   // message handler for the dialog box
63
   // message handler for the dialog box
-
 
64
 
-
 
65
   static wchar_t registeredto_message[256];
64
 
66
 
65
   unsigned short wParam_hiword;
67
   unsigned short wParam_hiword;
66
   unsigned short wParam_loword;
68
   unsigned short wParam_loword;
67
 
69
 
68
   // filter out the commonly used message values
70
   // filter out the commonly used message values
Line 89... Line 91...
89
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_PROGRAMVERSION), L"version " PROGRAM_VERSION L" " PROGRAM_COPYRIGHT L" " AUTHOR_NAME L" - ");
91
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_PROGRAMVERSION), L"version " PROGRAM_VERSION L" " PROGRAM_COPYRIGHT L" " AUTHOR_NAME L" - ");
90
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL), AUTHOR_EMAIL);
92
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL), AUTHOR_EMAIL);
91
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_1STPARAGRAPH), LOCALIZE (L"AboutBox_1stParagraph"));
93
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_1STPARAGRAPH), LOCALIZE (L"AboutBox_1stParagraph"));
92
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_2NDPARAGRAPH), LOCALIZE (L"AboutBox_2ndParagraph"));
94
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_2NDPARAGRAPH), LOCALIZE (L"AboutBox_2ndParagraph"));
93
      SetWindowText (GetDlgItem (hWnd, BUTTON_WEBSITE), LOCALIZE (L"AboutBox_VisitWebsite"));
95
      SetWindowText (GetDlgItem (hWnd, BUTTON_WEBSITE), LOCALIZE (L"AboutBox_VisitWebsite"));
-
 
96
 
-
 
97
      // build the "registered to:" message and display it
-
 
98
      if (is_registered)
-
 
99
         swprintf_s (registeredto_message, WCHAR_SIZEOF (registeredto_message), LOCALIZE (L"Registration_RegisteredTo"), options.registration.user_email);
-
 
100
      else
-
 
101
         wcscpy_s (registeredto_message, WCHAR_SIZEOF (registeredto_message), LOCALIZE (L"Registration_Unregistered"));
-
 
102
      Static_SetText (GetDlgItem (hWnd, STATICTEXT_REGISTEREDTO), registeredto_message);
94
 
103
 
95
      // convert the bitmaps to clickable things
104
      // convert the bitmaps to clickable things
96
      ConvertStaticToHyperlink (GetDlgItem (hWnd, BITMAP_ABOUT));
105
      ConvertStaticToHyperlink (GetDlgItem (hWnd, BITMAP_ABOUT));
97
      ConvertStaticToHyperlink (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL));
106
      ConvertStaticToHyperlink (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL));
98
   }
107
   }