예제 #1
0
 public MessageHandler(FXStudioForm formMain, Panel renderPanel)
 {
     m_formMain          = formMain;
     m_renderPanel       = renderPanel;
     m_fakeFocus         = false;
     m_mouseDownPosition = new System.Drawing.Point(0, 0);
 }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            try
            {
                FXStudioForm   form           = new FXStudioForm();
                MessageHandler messageHandler = form.GetMessageHandler();
                Application.AddMessageFilter(messageHandler);
                Application.Idle += new EventHandler(messageHandler.Application_Idle);
                Application.Run(form);
            }
            catch (DllNotFoundException ex)
            {
                MessageBox.Show(ex.Message, ex.Source);
                IntPtr hModule = LoadLibrary(RenderMethods.editorDllName);
                FreeLibrary(hModule);
                return;
            }
        }