VC 对话框收缩功能

[复制链接]
查看11 | 回复1 | 2010-7-4 17:15:56 | 显示全部楼层 |阅读模式
void CMNCDlg::Onshow()
{
// TODO: Add your control notification handler code here
CString str;
if(GetDlgItemText(IDC_SHOW,str),str=="显示报文>");
}
else
{
SetDlgItemText(IDC_SHOW,"显示报文GetWindowRect(&rectSeparator);//传递


rectSmall.left=rectLarge.left;
rectSmall.top=rectLarge.top;//rectSeparator.right,rectLarge.top
rectSmall.right=rectSeparator.right;
rectSmall.bottom=rectLarge.bottom;
}
if (str=="显示报文>”
SetDlgItemText(IDC_SHOW,"显示报文>>");
}
else
{
SetDlgItemText(IDC_SHOW,"显示报文<<");
}

回复

使用道具 举报

千问 | 2010-7-4 17:15:56 | 显示全部楼层
这个对话框扩展的,以前我的程序中用过,楼主请注意了:rectSmall.Height后少了个(),那是个函数调用,没发现吗?下面的rectLarge.Height也是类似情况,其它的代码都正确!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行