/// <summary> /// Filter out custom messages /// </summary> /// <param name="m">Message value - cannot be changed</param> /// <returns>false = messages will be prosessed by the appliction, true = message will be deleted and /// not processed</returns> public bool PreFilterMessage(ref Message m) { bool res = false;//by default allow the message to be dispatched to the rest of the app try { if (m.Msg == fCustomMSGHandle && m.Msg <= fCustomMSGHandle) { if (fCallback!=null) { fCallback(m.Msg, (int)m.WParam, (int)m.LParam, (int)m.HWnd.ToInt32()); } res = true; } } catch (Exception) { res = false; } return res; }
<pre lang="cs">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)