Dialog和EditBox按比例缩放添加了如下程序,可以实现但程序执行时出如下错误提示,各位高人看看闻提出在哪里。能不能解决看一下再说。
lf_77 2001-07-26 10:20:32 void CTemp2Dlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
m_EDIT1.MoveWindow(int(cx*0.02),int(cy*0.10),int(cx*0.96),int(cy*0.88),true);
}
错误提示:
Dubug Assertion Failed!
Program:D:\temp2\debug\temp2.exe
File:winocc.cpp
For information on how your program can carse an assertion failure,see the Visual c++documentation on asserts.
重试 终止 忽略
选“忽略”可正常运行。
答的好,分数可以商量