Example #1
0
CPropTree::CPropTree() :
    m_bShowInfo(TRUE),
#ifdef GLI_CHANGES
    m_nInfoHeight(0),
#else //GLI_CHANGES
    m_nInfoHeight(50),
#endif //GLI_CHANGES
    m_pVisbleList(NULL),
    m_Origin(100,0),
    m_nLastUID(1),
    m_pFocus(NULL),
    m_bDisableInput(FALSE)
{
    m_Root.Expand();

    // init global resources only once
    if (!s_nInstanceCount)
        InitGlobalResources();
    s_nInstanceCount++;

#ifdef GLI_CHANGES

    //Assign the global instance handle used by other controls
    ghInst = afxCurrentInstanceHandle;

#endif //GLI_CHANGES

}
Example #2
0
void COptionTree::OnSysColorChange() 
{	
	// Reload global resources
	InitGlobalResources();

	// Force redraw
	Invalidate();

	// Update window
	UpdateWindow();
	
	CWnd::OnSysColorChange();	
}
CEGPropertyGrid::CEGPropertyGrid() :
	m_bShowInfo(TRUE),
	m_nInfoHeight(50),
	m_pVisbleList(NULL),
	m_Origin(100,0),
	m_nLastUID(1),
	m_pFocus(NULL),
	m_bDisableInput(FALSE)
{
	m_Root.Expand();

	// init global resources only once
	if (!s_nInstanceCount)
		InitGlobalResources();
	s_nInstanceCount++;
}
Example #4
0
COptionTree::COptionTree()
{
	// Initialize variables
	m_dwTreeOptions = 0;
	m_otiVisibleList = NULL;
	m_otiFocus = NULL;
	m_bDisableInput = FALSE;
	m_uLastUID = 0;
	m_ptOrigin = CPoint(150, 0);
	m_pNotify = NULL;

	// Initialize global resources for all COptionTree
	// -- Initialize global resources
	if (!m_uInstanceCount)
	{
		InitGlobalResources();
	}
	// -- Increase instance number
	m_uInstanceCount++;
}