The MASM Forum

General => The Campus => Topic started by: xandaz on June 12, 2022, 02:13:24 AM

Title: WM_RBUTTONDOWN doesm't get processed!!! Help needed!
Post by: xandaz on June 12, 2022, 02:13:24 AM
    I'm tracking a menu using WM_RBUTTONDOWN but the message doesn't get processed. I've tryed to insert the code both in the WndProc and the MdiProc but nothing happens. Does anyone know why the sample code? ty
Title: Re: WM_RBUTTONDOWN doesm't get processed!!! Help needed!
Post by: xandaz on June 12, 2022, 02:15:59 AM
   sample code:  .elseif uMsg==WM_NCRBUTTONDOWN

mov eax,lParam
mov ebx,eax
shr ebx,16
movzx ebx,bx
movzx eax,ax
invoke TrackPopupMenu,hMenuMdiEdit,TPM_CENTERALIGN or TPM_RIGHTBUTTON,eax,ebx,0,hWnd,NULL   
.
Title: Re: WM_RBUTTONDOWN doesm't get processed!!! Help needed!
Post by: xandaz on June 12, 2022, 02:21:35 AM
   It processes WM_NCBUTTONDOWN, it's just the WM_RBUTTONDOWN that doesn't get processed.
Title: Re: WM_RBUTTONDOWN doesm't get processed!!! Help needed!
Post by: xandaz on June 12, 2022, 02:37:07 AM
     Problem solved. I forgot i subclassed the edit controls.