|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
小弟在初学阶段,麻烦指导下如何在新建的CATDlgdocument加入工具栏?谢谢
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);
} |
|