Added ctrl+c support at the window level. Exit is now Alt+X. Free clipboard memory.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@982 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-09-11 00:26:18 +00:00
parent 386fc85d32
commit 16f3ff503f
4 changed files with 18 additions and 16 deletions

View file

@ -43,9 +43,10 @@ void CopyToClipboard(HWND hwnd) {
EmptyClipboard();
existing_text[0]=0;
GetDlgItemText(hwnd, IDC_LOGWIN, existing_text, len);
GlobalUnlock(mem);
SetClipboardData(CF_TEXT,existing_text);
CloseClipboard();
GlobalUnlock(mem);
GlobalFree(mem);
}
@ -193,7 +194,7 @@ void SaveWindowPos(HWND hwnd) {
p.length = sizeof(p);
GetWindowPlacement(hwnd, &p);
if (RegCreateKey(REGSEC,REGKEY,&hKey) == ERROR_SUCCESS) {
RegSetValueEx(hKey,REGLOC,0,REG_BINARY,(unsigned char*)&p,sizeof(p));
RegSetValueEx(hKey,REGLOC,0,REG_BINARY,(unsigned char*)&p,sizeof(p));
RegCloseKey(hKey);
}
}