SidebarLibrary.WinControls.OutlookBar.WndProc C# (CSharp) Метод

WndProc() защищенный Метод

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
Результат void
		protected override  void WndProc(ref Message m)
		{
			bool callBase = true;
			switch(m.Msg)
			{
				case ((int)Msg.WM_CONTEXTMENU):
				{
					Point pt = WindowsAPI.GetPointFromLPARAM((int)m.LParam);
					pt = PointToClient(pt);
					Rectangle viewPortRect = GetViewPortRect();

					// Save the point so that we can update our popup menu correctly
					lastClickedPoint = pt;

					// If the user click on the child window don't
					// show a context menu
					if ( HasChild() && viewPortRect.Contains(pt))
					{
						callBase = false;
						break;
					}
				}
					break;
				default:
					break;
			}

			if ( callBase )
				base.WndProc(ref m);

		}
		#endregion