vc++ 可伸缩对话框 为什么我做的可伸缩对话框缩小的时候就看不见了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://dev.csdn.net/author/starlee/8522073c8f034264a026dd78dbfa2feb.html参考一下.此例对话框内的控件不是按比例调整,如果需要看代码自己计算下就行了. void CLoginDlg::OnSetting() {// TODO: Add your control notification handler code hereCString str;GetDlgItemText(IDC_SETTING,str);TRACE(str);if(str=="设置↑")//↓↑{SetDlgItemText(IDC_SETTING,"设置↓");}else{SetDlgItemText(IDC_SETTING,"设置↑");}if(rectLarge.IsRectNull()){CRect rectSeparator;GetWindowRect(&rectLarge); //取得窗口的最大宽度跟高度 GetDlgItem(IDC_SEPARATOR)->GetWindowRect(&rectSeparator); //取得分离线的位置rectSmall.left=rectLarge.left;rectSmall.top=rectLarge.top;rectSmall.right=rectLarge.right;rectSmall.bottom=rectSeparator.bottom;}if(str=="设置↑"){SetWindowPos(NULL,0,0,rectSmall.Width(),rectSmall.Height(),SWP_NOMOVE | SWP_NOZORDER);}else{SetWindowPos(NULL,0,0,rectLarge.Width(),rectLarge.Height(),SWP_NOMOVE | SWP_NOZORDER);}}我的代码,,,,缩小的时候是整个对话框消失 vc6中ComboBox如何添加下拉框选项! DLL工程中的DEF文件怎么用 怎么在多文档程序中的子窗口里新建窗体? VC 怎么可以同时添加多个文件? RegisterHotKey的奇怪问题 十万火急!!请各位高手指点!! 【CSDN】【第一次能取得ActiveX控件的所有正确属性,可是第二次取得时,全变成了第一个属性,或全是第二个属性,怪事,帮忙呀】 关于VC的前途问题? socket问题 我的拷屏程序56K,谁要留下EMail 使用AlphaBlend设置了透明度,如何再恢复? 有哪个函数或者API可以方便的写ProgID?
{
// TODO: Add your control notification handler code here
CString str;
GetDlgItemText(IDC_SETTING,str);
TRACE(str);
if(str=="设置↑")//↓↑
{
SetDlgItemText(IDC_SETTING,"设置↓");
}
else
{
SetDlgItemText(IDC_SETTING,"设置↑");
}
if(rectLarge.IsRectNull())
{
CRect rectSeparator;
GetWindowRect(&rectLarge); //取得窗口的最大宽度跟高度
GetDlgItem(IDC_SEPARATOR)->GetWindowRect(&rectSeparator); //取得分离线的位置
rectSmall.left=rectLarge.left;
rectSmall.top=rectLarge.top;
rectSmall.right=rectLarge.right;
rectSmall.bottom=rectSeparator.bottom;}
if(str=="设置↑")
{
SetWindowPos(NULL,0,0,rectSmall.Width(),rectSmall.Height(),
SWP_NOMOVE | SWP_NOZORDER);
}
else
{
SetWindowPos(NULL,0,0,rectLarge.Width(),rectLarge.Height(),
SWP_NOMOVE | SWP_NOZORDER);
}
}
我的代码,,,,缩小的时候是整个对话框消失