- UID
- 147482
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2004-6-8
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
void CreateToolbars()
{
IAcadMenuGroup *mnuGrp = NULL;
if (!getAcadMenuGroup(&mnuGrp))
{
acutPrintf("\nSearch menu error!");
return ;
}
//now get all the popup menus
IAcadToolbars *tlbrs = NULL;
HRESULT hr = S_OK;
hr = mnuGrp->get_Toolbars(&tlbrs);
mnuGrp->Release();
//let us create toolbars for polysamp
IAcadToolbar *tlbr = NULL;
hr = tlbrs->Add(L"TOOLS", &tlbr);
if FAILED(hr)
return;
tlbrs->Release();
//now add toolbar buttons
IAcadToolbarItem *button1 = NULL;
IAcadToolbarItem *button2 = NULL;
IAcadToolbarItem *button3 = NULL;
IAcadToolbarItem *button4 = NULL;
VARIANT index;
index.vt = VT_I4;
index.lVal = 100l;
VARIANT vtFalse;
vtFalse.vt = VT_BOOL;
vtFalse.boolVal = VARIANT_FALSE;
hr = tlbr->AddToolbarButton(index, L"FUN1", L"Click the fun1 button!", L"_fun1 ", vtFalse, &button1);
button1->Release();
hr = tlbr->AddToolbarButton(index, L"FUN2", L"Click the fun2 button!", L"_fun2 ", vtFalse, &button2);
button1->Release();
hr = tlbr->AddToolbarButton(index, L"FUN3", L"Click the fun3 button!", L"_fun3 ", vtFalse, &button3);
button1->Release();
hr = tlbr->AddToolbarButton(index, L"FUN4", L"Click the fun4 button!", L"_fun4 ", vtFalse, &button4);
button1->Release();
// tlbr->Dock(acToolbarDockLeft);
tlbr->Release();
return;
}
中的:L" ",表示什么意思 |
|