CRect cr;
GetParent()->GetWindowRect(&cr);
int width=(rand() mod (cr.Width));
int height=rand() mod (cr.Height);
\Lesson8Code\Test\WeiXinBtn.cpp(40) : error C2297: '%' : illegal, right operand has type 'int (__thiscall CRect::*)(void) const'
\Lesson8Code\Test\WeiXinBtn.cpp(41) : error C2146: syntax error : missing ';' before identifier 'mod'
\Lesson8Code\Test\WeiXinBtn.cpp(41) : error C2065: 'mod' : undeclared identifier
Error executing cl.exe.WeiXinBtn.obj - 3 error(s), 0 warning(s)