| 81 | } |
| 82 | |
| 83 | INT_PTR AboutDialog::run_dlg_proc(UINT message, WPARAM w_param, LPARAM l_param) { |
| 84 | switch (message) { |
| 85 | case WM_INITDIALOG: { |
| 86 | Static_SetText(::GetDlgItem(_hSelf, IDC_VERSION), get_product_and_version ().c_str ()); |
| 87 | update_compiler_version(); |
| 88 | } |
| 89 | return TRUE; |
| 90 | case WM_NOTIFY: { |
| 91 | switch (reinterpret_cast<LPNMHDR>(l_param)->code) { |
| 92 | case NM_CLICK: // Fall through to the next case. |
| 93 | case NM_RETURN: { |
| 94 | auto p_nm_link = reinterpret_cast<PNMLINK>(l_param); |
| 95 | LITEM item = p_nm_link->item; |
| 96 | |
| 97 | ShellExecute(nullptr, L"open", item.szUrl, nullptr, nullptr, SW_SHOW); |
| 98 | |
| 99 | return TRUE; |
| 100 | } |
| 101 | } |
| 102 | return FALSE; |
| 103 | } |
| 104 | case WM_COMMAND: { |
| 105 | switch (LOWORD(w_param)) { |
| 106 | case IDOK: |
| 107 | case IDCANCEL: |
| 108 | if (HIWORD(w_param) == BN_CLICKED) { |
| 109 | display(false); |
| 110 | return TRUE; |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | break; |
| 115 | } |
| 116 | return FALSE; |
| 117 | } |
no test coverage detected