|
小弟在初学阶段,麻烦指导下如何在新建的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);
} |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|