Disabled URL on Image Click on About dialog

This commit is contained in:
Gent
2021-09-13 18:29:34 +02:00
committed by GitHub
parent 42ebd8bc1f
commit b59ad759d6

View File

@ -195,10 +195,12 @@ LRESULT CALLBACK AboutBoxProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
mouse_click.x += dialog.left;
mouse_click.y += dialog.top;
GetWindowRect(GetDlgItem(hDlg, IDB_PJ64LOGO), &image);
// Disabled URL on Image Click - Gent (13-09.2021)
// GetWindowRect(GetDlgItem(hDlg, IDB_PJ64LOGO), &image);
if (PtInRect(&image, mouse_click))
ShellExecute(NULL, "open", "http://project64.emulation64.com", NULL, NULL, SW_SHOWMAXIMIZED);
// if (PtInRect(&image, mouse_click))
// ShellExecute(NULL, "open", "http://project64.emulation64.com", NULL, NULL, SW_SHOWMAXIMIZED);
break;
}
@ -427,4 +429,4 @@ void DrawBox(HDC dc, RECT rect) {
void AdjustRectangle(RECT *rect) {
rect->left += 5;
rect->right -= 5;
}
}