Added Context Menu in log window

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1059 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-09-20 00:53:57 +00:00
parent 19e6cde283
commit 07b87eb653
4 changed files with 32 additions and 1 deletions

View file

@ -107,6 +107,22 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
}
return TRUE;
}
case WM_CONTEXTMENU:
{
if ((HWND)wParam==GetDlgItem(g_hwnd,IDC_LOGWIN)) {
HMENU m = LoadMenu(g_hInstance,MAKEINTRESOURCE(IDM_LOGWIN));
if (m) {
HMENU s = GetSubMenu(m,0);
if (s) {
int xPos,yPos;
xPos = (int)(short)LOWORD(lParam);
yPos = (int)(short)HIWORD(lParam);
TrackPopupMenu(s,NULL,xPos,yPos,0,g_hwnd,0);
}
}
}
return TRUE;
}
case WM_DROPFILES: {
int num;
char szTmp[MAX_PATH];