Exemple #1
0
int MPE_Open_graphics(MPE_XGraph *graph, MPI_Comm comm, char *display, int x, int y, int width, int height, int isVisible)
{
	graph->width = width;
	graph->height = height;
	graph->map = new MPE_Color[(width+1) * (height+1)];
	memset(graph->map, 0, (width+1) * (height+1) * sizeof(MPE_Color));
	if (isVisible)
	{
		graph->bVisible = true;
		BringUpWindow(*graph);
	}
	return 0;
}
/// <summary>
/// Display Kinect window and its sub views.
/// </summary>
void KinectWindow::ShowWindows()
{
    // Kinect window
    this->ShowView();

    // Tab control
    ShowWindow(m_hWndTab, SW_SHOW);
    UpdateWindow(m_hWndTab);

    // Primary and secondary views
    m_pPrimaryView->ShowView();
    m_pSecondaryView->ShowView();

    // Show first tabbed view
    if (m_tabbedViews.size() > 0)
    {
        m_pCurTabbedView = m_tabbedViews[0];
        m_pCurTabbedView->ShowView();
    }

    // Bring Kinect window to top
    BringUpWindow();
}