iCAx开思网

标题: 如何加入工具栏? [打印本页]

作者: huanghe2891    时间: 2008-7-7 12:39
标题: 如何加入工具栏?
小弟在初学阶段,麻烦指导下如何在新建的CATDlgdocument加入工具栏?谢谢
[attach]776338[/attach]
void ASRIBrowserDoc::CreateToolBar()
{
CATDlgToolBar * pToolBar1;
pToolBar1=new CATDlgToolBar(this,"Bar1",CATDlgTlbDockOnTop);
CATDlgPushButton * PToolButton1;
PToolButton1=new CATDlgPushButton(pToolBar1,"Button1");
AddAnalyseNotificationCB(PToolButton1,
  PToolButton1->GetPushBActivateNotification(),
  (CATCommandMethod)&ASRIBrowserDoc::Open,
  NULL);
CATDlgStatusBar * pStateBar;
pStateBar=new CATDlgStatusBar(this,"State");
int PowerInputMode = 1;
pStateBar->SetPowerInputMode(PowerInputMode);
}
作者: huanghe2891    时间: 2008-7-9 21:43
怎么没有人知晓?
作者: zheng.lei213@16    时间: 2012-10-7 15:41





欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3