|
AcApStatusBar* pStatus = acedGetApplicationStatusBar();
if (pStatus)
{
int iCnt = pStatus->GetPaneCount();
for (int i=0; i <iCnt ;i++ )
{
AcPane* pPane = pStatus->GetPane(i);
CString sText;
pPane->GetText(sText);
int iStyle=pPane->GetStyle();
if (sText == _T("模型"))
{
AcPane* pPane = new AcPane;
if (pPane)
{
pPane->SetToolTipText(_T("视图同步"));
pPane->SetVisible(TRUE);
//pPane->SetStyle(ACSB_NOBORDERS);
pPane->SetText(_T("同步"));
pPane->SetMinWidth(pStatus->GetTextWidth(_T("捕捉")));
pStatus->Insert(i+1, pPane);
break;
}
}
}
pStatus->Update();
} |
|