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,"显示报文<<");
}
|