Back to 37KB
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@989 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b8d22bbe8c
commit
8005a05b1b
1 changed files with 13 additions and 8 deletions
|
@ -73,6 +73,10 @@ static int num_sections;
|
||||||
|
|
||||||
#define WM_TREEVIEW_KEYHACK (WM_USER+0x13)
|
#define WM_TREEVIEW_KEYHACK (WM_USER+0x13)
|
||||||
|
|
||||||
|
void NSISCALL notify(char num) {
|
||||||
|
SendMessage(g_hwnd,WM_NOTIFY_OUTER_NEXT,(WPARAM)num,0);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
|
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
|
||||||
static BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
static BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
static int CALLBACK WINAPI BrowseCallbackProc( HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
|
static int CALLBACK WINAPI BrowseCallbackProc( HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
|
||||||
|
@ -611,7 +615,7 @@ static BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
|
||||||
|
|
||||||
if (id == IDOK && m_curwnd)
|
if (id == IDOK && m_curwnd)
|
||||||
{
|
{
|
||||||
SendMessage(hwndDlg,WM_NOTIFY_OUTER_NEXT,1,0);
|
notify(1);
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
|
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
|
||||||
|
@ -620,7 +624,7 @@ static BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
|
||||||
(id == IDC_BACK && m_curwnd && m_page>0))
|
(id == IDC_BACK && m_curwnd && m_page>0))
|
||||||
{
|
{
|
||||||
EnableWindow(GetDlgItem(hwndDlg, IDOK), TRUE);
|
EnableWindow(GetDlgItem(hwndDlg, IDOK), TRUE);
|
||||||
SendMessage(hwndDlg,WM_NOTIFY_OUTER_NEXT,-1,0);
|
notify(-1);
|
||||||
}
|
}
|
||||||
if (id == IDCANCEL)
|
if (id == IDCANCEL)
|
||||||
{
|
{
|
||||||
|
@ -684,9 +688,10 @@ static BOOL CALLBACK LicenseProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
//End Xge
|
//End Xge
|
||||||
}
|
}
|
||||||
else if (uMsg == WM_NOTIFY) {
|
else if (uMsg == WM_NOTIFY) {
|
||||||
ENLINK *enlink=(ENLINK *)lParam;
|
#define nmhdr ((NMHDR *)lParam)
|
||||||
MSGFILTER* msgfilter=(MSGFILTER *)lParam;
|
#define enlink ((ENLINK *)lParam)
|
||||||
if (enlink->nmhdr.code==EN_LINK) {
|
#define msgfilter ((MSGFILTER *)lParam)
|
||||||
|
if (nmhdr->code==EN_LINK) {
|
||||||
if (enlink->msg==WM_LBUTTONDOWN) {
|
if (enlink->msg==WM_LBUTTONDOWN) {
|
||||||
char *szUrl;
|
char *szUrl;
|
||||||
long min=enlink->chrg.cpMin, max=enlink->chrg.cpMax;
|
long min=enlink->chrg.cpMin, max=enlink->chrg.cpMax;
|
||||||
|
@ -710,12 +715,12 @@ static BOOL CALLBACK LicenseProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
//push button. When the user presses return ask the outer dialog to move
|
//push button. When the user presses return ask the outer dialog to move
|
||||||
//the installer onto the next page. MSDN docs say return non-zero if the
|
//the installer onto the next page. MSDN docs say return non-zero if the
|
||||||
//rich edit control should NOT process this message, hence the return 1.
|
//rich edit control should NOT process this message, hence the return 1.
|
||||||
else if (msgfilter->nmhdr.code==EN_MSGFILTER)
|
else if (nmhdr->code==EN_MSGFILTER)
|
||||||
{
|
{
|
||||||
if (msgfilter->msg==WM_KEYDOWN &&
|
if (msgfilter->msg==WM_KEYDOWN &&
|
||||||
msgfilter->wParam==VK_RETURN)
|
msgfilter->wParam==VK_RETURN)
|
||||||
{
|
{
|
||||||
SendMessage(g_hwnd,WM_NOTIFY_OUTER_NEXT,1,0);
|
notify(1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1435,7 +1440,7 @@ static BOOL CALLBACK InstProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SendMessage(g_hwnd,WM_NOTIFY_OUTER_NEXT,1,0);
|
notify(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue