public _3DRenderWindow(CPlusDLLLoader p3DInterface, MainWindow pMainWnd) { InitializeComponent(); m_3DInterface = p3DInterface; m_pMainWnd = pMainWnd; this.Loaded += _3DRenderWindow_Loaded; }
private void MainWindow_Loaded(object sender, RoutedEventArgs e) { m_ShareMemory = new ShareMemory(); if (m_ShareMemory != null) { m_ShareMemory.Init(true, "Test_Memory"); m_ShareMemory.SetCallBackFunc(ShareMemoryNotifyInfo); //m_ShareMemory.WriteShareMemory("Test_Infdo", 10); m_ShareMemory.OnRun(); } m_3DUserControl = new _3DUserControl(this); m_3DInterface = new CPlusDLLLoader(); m_WndData = new Window_CoorData(this); IntPtr hwnd = new WindowInteropHelper(this).Handle; m_3DRenderWnd = new _3DRenderWindow(m_3DInterface, this); m_3DRenderWnd.Visibility = Visibility.Visible; m_3DRenderWnd.Owner = this; ChangWindowSize(); CompositionTarget.Rendering += new EventHandler(WindowPositionChange); //FileLoadProgressBar.Visibility = Visibility.Visible; // FileLoadProgressBar.Value = 100; }
public _3DWndHost(CPlusDLLLoader p3DInterface, int nWidth, int nHeight) { m_3DInterface = p3DInterface; m_WndWidth = nWidth; m_WndHeight = nHeight; }