News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

WM_RBUTTONDOWN doesm't get processed!!! Help needed!

Started by xandaz, June 12, 2022, 02:13:24 AM

Previous topic - Next topic

xandaz

    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

xandaz

   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   
.

xandaz

   It processes WM_NCBUTTONDOWN, it's just the WM_RBUTTONDOWN that doesn't get processed.

xandaz

     Problem solved. I forgot i subclassed the edit controls.