richedit controls automatically set the hand cursor for links, no need to do it manually
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4507 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
fad6285077
commit
a889217375
1 changed files with 2 additions and 10 deletions
|
@ -705,11 +705,6 @@ skipPage:
|
||||||
|
|
||||||
#ifdef NSIS_CONFIG_LICENSEPAGE
|
#ifdef NSIS_CONFIG_LICENSEPAGE
|
||||||
|
|
||||||
static void NSISCALL LoadAndSetCursor(LPCTSTR lpCursorName)
|
|
||||||
{
|
|
||||||
SetCursor(LoadCursor(0, lpCursorName));
|
|
||||||
}
|
|
||||||
|
|
||||||
#define _RICHEDIT_VER 0x0200
|
#define _RICHEDIT_VER 0x0200
|
||||||
#include <richedit.h>
|
#include <richedit.h>
|
||||||
#undef _RICHEDIT_VER
|
#undef _RICHEDIT_VER
|
||||||
|
@ -783,14 +778,11 @@ static BOOL CALLBACK LicenseProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
};
|
};
|
||||||
if (tr.chrg.cpMax-tr.chrg.cpMin < sizeof(ps_tmpbuf)) {
|
if (tr.chrg.cpMax-tr.chrg.cpMin < sizeof(ps_tmpbuf)) {
|
||||||
SendMessage(hwLicense,EM_GETTEXTRANGE,0,(LPARAM)&tr);
|
SendMessage(hwLicense,EM_GETTEXTRANGE,0,(LPARAM)&tr);
|
||||||
LoadAndSetCursor(IDC_WAIT);
|
SetCursor(LoadCursor(0, IDC_WAIT));
|
||||||
ShellExecute(hwndDlg,"open",tr.lpstrText,NULL,NULL,SW_SHOWNORMAL);
|
ShellExecute(hwndDlg,"open",tr.lpstrText,NULL,NULL,SW_SHOWNORMAL);
|
||||||
LoadAndSetCursor(IDC_ARROW);
|
SetCursor(LoadCursor(0, IDC_ARROW));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (enlink->msg==WM_SETCURSOR) {
|
|
||||||
LoadAndSetCursor(IDC_HAND);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//Ximon Eighteen 8th September 2002 Capture return key presses in the rich
|
//Ximon Eighteen 8th September 2002 Capture return key presses in the rich
|
||||||
//edit control now that the control gets the focus rather than the default
|
//edit control now that the control gets the focus rather than the default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue