Esempio n. 1
0
        // Receive messages
        protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
            case (int)InterProcess.WM_COPYDATA:
                InterProcess.HandleDataMessage(ref m);
                break;

            default:
                base.WndProc(ref m);
                break;
            }
        }
Esempio n. 2
0
        // Receive messages
        protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
            // Display sends us its HWND
            case (int)InterProcess.MSG_HWND:
                InterProcess.otherhwnd = m.WParam;
                break;

            // Data message
            case (int)InterProcess.WM_COPYDATA:
                InterProcess.HandleDataMessage(ref m);
                break;

            default:
                base.WndProc(ref m);
                break;
            }
        }