Added Browse Script (Ctrl+B)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1352 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
eb27ee547b
commit
694bdbf5ea
5 changed files with 23 additions and 5 deletions
|
@ -210,6 +210,16 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
|
|||
case WM_COMMAND:
|
||||
{
|
||||
switch (LOWORD(wParam)) {
|
||||
case IDM_BROWSESCR: {
|
||||
if (g_input_script) {
|
||||
char str[MAX_PATH],*str2;
|
||||
lstrcpy(str,g_input_script);
|
||||
str2=strrchr(str,'\\');
|
||||
if(str2!=NULL) *str2=0;
|
||||
ShellExecute(g_hwnd,"open",str,NULL,NULL,SW_SHOWNORMAL);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
case IDM_ABOUT:
|
||||
{
|
||||
DialogBox(g_hInstance,MAKEINTRESOURCE(DLG_ABOUT),g_hwnd,(DLGPROC)AboutProc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue