Rev 186 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 186 | Rev 194 | ||
|---|---|---|---|
| Line 99... | Line 99... | ||
| 99 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL), AUTHOR_EMAIL); |
99 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL), AUTHOR_EMAIL); |
| 100 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_1STPARAGRAPH), LOCALIZE (L"AboutBox_1stParagraph")); |
100 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_1STPARAGRAPH), LOCALIZE (L"AboutBox_1stParagraph")); |
| 101 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_2NDPARAGRAPH), LOCALIZE (L"AboutBox_2ndParagraph")); |
101 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_2NDPARAGRAPH), LOCALIZE (L"AboutBox_2ndParagraph")); |
| 102 | SetWindowText (GetDlgItem (hWnd, BUTTON_WEBSITE), LOCALIZE (L"AboutBox_VisitWebsite")); |
102 | SetWindowText (GetDlgItem (hWnd, BUTTON_WEBSITE), LOCALIZE (L"AboutBox_VisitWebsite")); |
| 103 | 103 | ||
| - | 104 | #ifndef NO_REGISTRATION |
|
| 104 | // build the "registered to:" message and display it |
105 | // build the "registered to:" message and display it |
| 105 | if (is_registered) |
106 | if (is_registered) |
| 106 | swprintf_s (temp_buffer, WCHAR_SIZEOF (temp_buffer), LOCALIZE (L"Registration_RegisteredTo"), options.registration.user_email); |
107 | swprintf_s (temp_buffer, WCHAR_SIZEOF (temp_buffer), LOCALIZE (L"Registration_RegisteredTo"), options.registration.user_email); |
| 107 | else |
108 | else |
| 108 | wcscpy_s (temp_buffer, WCHAR_SIZEOF (temp_buffer), LOCALIZE (L"Registration_Unregistered")); |
109 | wcscpy_s (temp_buffer, WCHAR_SIZEOF (temp_buffer), LOCALIZE (L"Registration_Unregistered")); |
| 109 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_REGISTEREDTO), temp_buffer); |
110 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_REGISTEREDTO), temp_buffer); |
| - | 111 | #else // NO_REGISTRATION |
|
| - | 112 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_REGISTEREDTO), L""); |
|
| - | 113 | #endif // !NO_REGISTRATION |
|
| 110 | 114 | ||
| 111 | // convert the author's email to something clickable |
115 | // convert the author's email to something clickable |
| 112 | ConvertStaticToHyperlink (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL)); |
116 | ConvertStaticToHyperlink (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL)); |
| 113 | } |
117 | } |
| 114 | 118 | ||