コード例 #1
1
 // We take both the EditorForm's handle and its displayPanel handle, since messages
 // will sometimes be for the form, or the display panel.
 public MessageHandler( Panel displayPanel, EditorForm parent )
 {
     m_fakeFocus = false;
     m_displayPanel = displayPanel;
     m_parent = parent;
     m_mouseDownPosition = new System.Drawing.Point(0, 0); 
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: bowlofstew/gamecode4
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            EditorForm form = new EditorForm();

            // Hook up our message handler
            MessageHandler messageHandler = form.GetMessageHandler();
            Application.AddMessageFilter(messageHandler);
            Application.Idle += new EventHandler(messageHandler.Application_Idle);
            Application.Run(form);
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: painblanc/GameCodeComplete
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            EditorForm form = new EditorForm();

            // Hook up our message handler
            MessageHandler messageHandler = form.GetMessageHandler();

            Application.AddMessageFilter(messageHandler);
            Application.Idle += new EventHandler(messageHandler.Application_Idle);
            Application.Run(form);
        }