D
D
ddddd tttt2017-09-20 07:20:47
assembler
ddddd tttt, 2017-09-20 07:20:47

How to handle pressing the key combination: CTRL + RMB, ALT + RMB (TASM + WINAPI)?

push    [msg.msWPARAM]
        call    ExitProcess
        WndProc proc uses ebx edi esi, hwnd:DWORD, wmsg:DWORD, wparam:DWORD, lparam:DWORD 
        LOCAL   theDC:DWORD
        cmp     [wmsg], WM_DESTROY 
        je      wmdestroy  
        cmp     [wmsg], WM_LBUTTONDOWN  
        je      wmrbuttondown      
        cmp     [wmsg], WM_SIZE 
        je      wmsize
        cmp     [wmsg], WM_CREATE   
        je      wmcreate
        cmp     [wmsg], VK_F2 
        je      wmlbuttondown
        cmp     [wmsg], WM_PAINT   
        je      wmpaint
        cmp     [wmsg], WM_GETMINMAXINFO 
        je      wmgetminmaxinfo 
       jmp     defwndproc

It has this handler. How to do processing CTRL + RMB and ALT + RMB?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-09-20
@pashaa

Handle WM_RBUTTONDOWN , CTRL state can be taken from wparam. For the ALT state, you will have to climb into GetKeyState .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question