/////////////////////////////////////////////////////////////////////////////
// CSettingsDialog message handlers
//
BOOL CSettingsDialog::OnInitDialog() 
{
	CDialog::OnInitDialog();

	// TODO: Add extra initialization here
	m_PageFrame.GetWindowRect(m_FrameRect);
	ScreenToClient(m_FrameRect);
	m_FrameRect.DeflateRect(2,2);

	SetWindowText(m_csTitle);

	// Set some styles for indicator bar
	m_CaptionBarCtrl.m_textClr     = ::g_PaintManager->GetColor(COLOR_3DFACE);
	m_CaptionBarCtrl.m_fontWeight  = FW_BOLD;
	m_CaptionBarCtrl.m_fontSize    = 14;
	m_CaptionBarCtrl.m_csFontName  = "Segoe UI";
	m_CaptionBarCtrl.SetConstantText(m_csLogoText);

	InitTreeCtrl();		// Initialize the tree control with options
	ExpandTree();
	if (m_pInfo.GetAt(0)) ShowPage(m_pInfo.GetAt(0));
	if (!m_pParent) 
	{
		GetDlgItem(IDAPPLY)->EnableWindow(FALSE);
	}
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
/////////////////////////////////////////////////////////////////////////////
// 视图初始化
/////////////////////////////////////////////////////////////////////////////
void CWorkSpaceView::OnInitialUpdate() 
{
	CView::OnInitialUpdate();
	
	InitTreeCtrl();	// 初始化图标组和基本菜单
	//InitTaskPanel(); // 初始化TaskPanel

	reset_dll_resource();
}