Minor improvement to CTRL-C key test code but it's still shite.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@842 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
88d1eb693f
commit
851e5d1fc5
1 changed files with 2 additions and 2 deletions
|
@ -1408,8 +1408,8 @@ static BOOL CALLBACK InstProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||
//+++If CTRL-C is pressed (yeah I know this has got to be the most stupid
|
||||
//+++way to test for this) copy the DetailPrint'd strings to the clipboard.
|
||||
if (uMsg == WM_NOTIFY && ((NMHDR*)lParam)->code == LVN_KEYDOWN &&
|
||||
((VK_CONTROL == ((NMLVKEYDOWN*)lParam)->wVKey && GetKeyState('C') == -127) ||
|
||||
('C' == ((NMLVKEYDOWN*)lParam)->wVKey && GetKeyState(VK_CONTROL) == -127)))
|
||||
((VK_CONTROL == ((NMLVKEYDOWN*)lParam)->wVKey && GetKeyState('C') != 0) ||
|
||||
('C' == ((NMLVKEYDOWN*)lParam)->wVKey && GetKeyState(VK_CONTROL) != 0)))
|
||||
{
|
||||
int count = ListView_GetItemCount(insthwnd);
|
||||
if (count > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue