Rev 147 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 147 | Rev 186 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | static int CALLBACK DialogProc_ThisDialog (HWND hWnd, unsigned int message, WPARAM wParam, LPARAM lParam) |
63 | static int CALLBACK DialogProc_ThisDialog (HWND hWnd, unsigned int message, WPARAM wParam, LPARAM lParam) |
64 | { |
64 | { |
65 | // message handler for the dialog box |
65 | // message handler for the dialog box |
66 | 66 | ||
67 | static wchar_t temp_buffer[256]; |
67 | static wchar_t temp_buffer[256]; |
- | 68 | static wchar_t wide_version[32]; |
|
- | 69 | static char version[32]; |
|
68 | 70 | ||
69 | unsigned short wParam_hiword; |
71 | unsigned short wParam_hiword; |
70 | unsigned short wParam_loword; |
72 | unsigned short wParam_loword; |
71 | 73 | ||
72 | // filter out the commonly used message values |
74 | // filter out the commonly used message values |
Line 88... | Line 90... | ||
88 | 90 | ||
89 | // set the banner area font |
91 | // set the banner area font |
90 | SendMessage (GetDlgItem (hWnd, STATICTEXT_BANNER), WM_SETFONT, (WPARAM) hFontBanner, false); |
92 | SendMessage (GetDlgItem (hWnd, STATICTEXT_BANNER), WM_SETFONT, (WPARAM) hFontBanner, false); |
91 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_BANNER), PROGRAM_NAME); |
93 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_BANNER), PROGRAM_NAME); |
92 | 94 | ||
93 | swprintf_s (temp_buffer, WCHAR_SIZEOF (temp_buffer), L"version %c%c%c%c%s%c%c © 2010-2016 Pierre-Marie Baty - ", |
- | |
94 | __DATE__[7], __DATE__[8], __DATE__[9], __DATE__[10], |
- | |
95 |
|
95 | GenerateVersionNumber (version, sizeof (version)); |
96 | (strncmp (__DATE__, "Feb", 3) == 0 ? L"02" : |
- | |
97 | (strncmp (__DATE__, "Mar", 3) == 0 ? L"03" : |
- | |
98 | (strncmp (__DATE__, "Apr", 3) == 0 ? L"04" : |
- | |
99 | (strncmp (__DATE__, "May", 3) == 0 ? L"05" : |
- | |
100 | (strncmp (__DATE__, "Jun", 3) == 0 ? L"06" : |
- | |
101 | (strncmp (__DATE__, "Jul", 3) == 0 ? L"07" : |
- | |
102 | (strncmp (__DATE__, "Aug", 3) == 0 ? L"08" : |
- | |
103 | (strncmp (__DATE__, "Sep", 3) == 0 ? L"09" : |
- | |
104 | (strncmp (__DATE__, "Oct", 3) == 0 ? L"10" : |
- | |
105 |
|
96 | ConvertToWideChar (wide_version, WCHAR_SIZEOF (wide_version), version); |
106 |
|
97 | swprintf_s (temp_buffer, WCHAR_SIZEOF (temp_buffer), L"version %s © 2010-%.4s Pierre-Marie Baty - ", wide_version, wide_version); |
107 | (__DATE__[4] == ' ' ? '0' : __DATE__[4]), __DATE__[5]); |
- | |
108 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_PROGRAMVERSION), temp_buffer); |
98 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_PROGRAMVERSION), temp_buffer); |
109 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL), AUTHOR_EMAIL); |
99 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_AUTHOREMAIL), AUTHOR_EMAIL); |
110 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_1STPARAGRAPH), LOCALIZE (L"AboutBox_1stParagraph")); |
100 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_1STPARAGRAPH), LOCALIZE (L"AboutBox_1stParagraph")); |
111 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_2NDPARAGRAPH), LOCALIZE (L"AboutBox_2ndParagraph")); |
101 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_ABOUTBOX_2NDPARAGRAPH), LOCALIZE (L"AboutBox_2ndParagraph")); |
112 | SetWindowText (GetDlgItem (hWnd, BUTTON_WEBSITE), LOCALIZE (L"AboutBox_VisitWebsite")); |
102 | SetWindowText (GetDlgItem (hWnd, BUTTON_WEBSITE), LOCALIZE (L"AboutBox_VisitWebsite")); |