procedure TfrmMain.ApplicationEvents1Message(var Msg: tagMSG;<br> var Handled: Boolean);<br>begin<br> if IsChild(YOURCOMPONENT.Handle, Msg.Hwnd) and <br>//是否是你指定控件上<br> ((Msg.Message = WM_RBUTTONDOWN) or (Msg.Message = WM_RBUTTONUP)) then<br>//右键消息<br> begin<br> //你的事件 <br> Handled:=True;<br> end;<br>end;