private bool ThreadMessageProc(ref Win32.MSG msg) { if (msg.message == _invokeActionMessage) { InvokeActions(); return true; } return false; }