Status res = graphics.FillRectangle(&linGrBrush, 300, 50, 200, 100);
if (Ok == res)
{
MessageBox(L"函数正常执行");
}else if(InvalidParameter == res){
MessageBox(L"函数参数错误");
}else{
MessageBox(L"其它错误");
}
Status res = graphics.FillRectangle(&linGrBrush, 300, 50, 200, 100);
if (Ok == res)
{
MessageBox(L"函数正常执行");
}else if(InvalidParameter == res){
MessageBox(L"函数参数错误");
}else{
MessageBox(L"其它错误");
}