救急,如何使 ReBar 的某一个 Band 在单独的一行中显示 ? VB里的CoolBar控件的Band 有一个 NewRow 的属性,不知用 VC 如何控制 ReBar ? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 AddBar时候加上这个RBBS_BREAK 属性就可以了 我要使一个已经存在的 Band 换行。 我自己先试一试吧。 用SetBandInfo函数,参数中的REBARBANDINFO* prbbi 可以设置 我是这么做,你帮我就帮到底吧,我已经获得了 IE 的窗口句柄, 我想使 IE 中的某一个工具栏在单独的一行显示?可是我得不到 ReBar 的句柄? 能给我解释一下ReBar吗?是不是可以做成类似MSDev中的类向导器?我也写了个,我想在ReBar中AddBar加一个对话框,可是什么都没显示出来,哪位高手指点一下?本人深表感谢。 用spy看看那个rebar的wndclass and title,然后FindWindow找到它,就能得到句柄。 void CCrIEDlg::OnFindIERebar() {HWND hWorker,hRebar;HWND hwndParent=::FindWindow("IEFrame",NULL);//找到IEhWorker=FindWindowEx(hwndParent,0,"WorkerA",NULL);//找到工作区//上面用在NT中是hWorker=FindWindowEx(hwndParent,0,"WorkerW",NULL);hRebar=FindWindowEx(hWorker,0,"ReBarWindow32",NULL);//找到Rebar} int i=SendMessage(hRebar,RB_GETBANDCOUNT,0,0);SendMessage(hRebar,RB_GETBANDINFO,i-1,(long)&info);info.fStyle = info.fStyle | RBBS_BREAK;SendMessage(hRebar,RB_SETBANDINFO,i-1,(long)&info);这样写对吗? info.fStyle = info.fStyle ¦ RBBS_BREAK;改成 info.fStyle|= RBBS_BREAK; 关于创建窗口 关于PreTranslateMessage() 在64位系统下控件都不能用了 button问题 真彩色图像的挑战 一个简单问题 Clistctrl显示数据库记录的问题,请大家帮我! 为什么点击“软件”要求输入网络密码? 怎样在active控件属性中关联CCombobox控件 求教:怎样得到RFC的文档(通过电子邮件的方式)? 中国的程序员为什么不喜欢用新闻组? vc特难的问题求解!!!vc高手?高手?高手?高手?高手?高手?高手?
可是我得不到 ReBar 的句柄?
{
HWND hWorker,hRebar;
HWND hwndParent=::FindWindow("IEFrame",NULL);//找到IE
hWorker=FindWindowEx(hwndParent,0,"WorkerA",NULL);//找到工作区
//上面用在NT中是hWorker=FindWindowEx(hwndParent,0,"WorkerW",NULL);
hRebar=FindWindowEx(hWorker,0,"ReBarWindow32",NULL);//找到Rebar
}
SendMessage(hRebar,RB_GETBANDINFO,i-1,(long)&info);
info.fStyle = info.fStyle | RBBS_BREAK;
SendMessage(hRebar,RB_SETBANDINFO,i-1,(long)&info);这样写对吗?