如何改变状态栏的大小,麻烦哪位告知 如何改变状态栏的大小,麻烦哪位告知 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 m_wndStatusBar.SetPaneInfo(3,3,SBPS_NORMAL,160);最后160就是大小 void CMainFrame::OnSize(UINT nType, int cx, int cy) { CMDIFrameWnd::OnSize(nType, cx, cy); SetStatusPanel(cx);}void CMainFrame::SetStatusPanel(int nWidth){ const int nParts = 7; int widths[nParts] = {nWidth-420, nWidth-300, nWidth-180, nWidth-145, nWidth-110, nWidth-75, -1}; if (m_wndStatusBar) { if (nWidth < 400) { widths[0] = nWidth*2/5; widths[1] = nWidth*11/20; widths[2] = nWidth*29/40; widths[3] = nWidth*31/40; widths[4] = nWidth*33/40; widths[5] = nWidth*35/40; widths[6] = -1; } } else return; m_wndStatusBar.GetStatusBarCtrl().SetParts(nParts, widths);} m_wndStatusBar.SetPaneInfo(m_wndStatusBar.CommandToIndex(ID_INDICATOR_1),ID_INDICATOR_1,SBPS_NORMAL,70) 怎么找不到这个窗口(FINDWINDOW) 问一个关于VC模拟登录网站的密码保存的问题。。 win32 console过渡到win32 app的问题 daocore.cpp的42行错误(着急,在线等) 很郁闷,请教一个BCG使用问题,多谢了! 求教关于粗糙集有关算法.(急) 在局域网上发送报文,如果网络时通时断怎么解决? 這些debug信息是甚麼意思??謝謝!! 再问高人关于IE SDK头文件的问题(200分)!!!!! 宏 这个东西如何准确而形象的解释,好象和函数调用差不多 我要注销我的帐号了,散分。 一定给分,如果能搞定另加100分
最后160就是大小
void CMainFrame::OnSize(UINT nType, int cx, int cy)
{
CMDIFrameWnd::OnSize(nType, cx, cy);
SetStatusPanel(cx);
}void CMainFrame::SetStatusPanel(int nWidth)
{
const int nParts = 7;
int widths[nParts] = {nWidth-420, nWidth-300, nWidth-180, nWidth-145, nWidth-110, nWidth-75, -1};
if (m_wndStatusBar)
{
if (nWidth < 400)
{
widths[0] = nWidth*2/5;
widths[1] = nWidth*11/20;
widths[2] = nWidth*29/40;
widths[3] = nWidth*31/40;
widths[4] = nWidth*33/40;
widths[5] = nWidth*35/40;
widths[6] = -1;
}
}
else
return;
m_wndStatusBar.GetStatusBarCtrl().SetParts(nParts, widths);
}