Beispiel #1
0
        public void Launch()
        {
            Msg msg = new Msg ();
            bool done = false;

            while (!done) {
                if (msg.PeekAll ()) {
                    if (msg.message == WmConstants.Wm_quit) {
                        done = true;
                    } else {
                        msg.Translate ();
                        msg.Dispatch ();
                    }
                } else {
                        // Idle Actions
                    msg.Wait ();
                }
            }
        }
Beispiel #2
0
 public static extern bool PeekMessage(out Msg lpMsg, IntPtr hWnd, uint wMsgFilterMin, uint wMsgFilterMax, PeekMessageConstants wRemoveMsg);