| 3047 | } |
| 3048 | |
| 3049 | void CColorCopDlg::OnPopupApplicationHelp() { |
| 3050 | CString helpPath; |
| 3051 | GetModuleFileName(NULL, helpPath.GetBufferSetLength(MAX_PATH), MAX_PATH); |
| 3052 | helpPath.ReleaseBuffer(); |
| 3053 | PathRemoveFileSpec(helpPath.GetBuffer()); |
| 3054 | helpPath.ReleaseBuffer(); |
| 3055 | helpPath += _T("\\ColorCop.chm"); |
| 3056 | // Use ShellExecute with hh.exe instead of HtmlHelp: |
| 3057 | // - HtmlHelp is deprecated and unreliable on modern Windows |
| 3058 | // - Ensures the .chm opens correctly regardless of installation path |
| 3059 | ShellExecute(NULL, _T("open"), _T("hh.exe"), helpPath, NULL, SW_SHOWNORMAL); |
| 3060 | } |
| 3061 | |
| 3062 | void CColorCopDlg::OnPopupColorDetectwebsafe() { |
| 3063 | m_Appflags ^= DetectWebsafeColors; |
nothing calls this directly
no outgoing calls
no test coverage detected