MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / run_dlg_proc

Method run_dlg_proc

src/ui/AboutDialog.cpp:83–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83INT_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}

Callers 1

dlgProcMethod · 0.45

Calls 2

get_product_and_versionFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected