求Form中除title和softkey外范围的时候,用IROOTFORM_GetClientRect出错
以前问的怎么求Form中除了标题和softkey后区域的范围的时候,
有人说用IROOTFORM_GetClientRect();
我是这样用的
typedef struct _imageTest{
AEEApplet a ; // First element of this structure must be AEEApplet
AEEDeviceInfo DeviceInfo; // always have access to the hardware device information
IShell *meIshell;//
IDisplay *meIDisplay;
// add your own variables here...
IRootForm *rootForm;
IForm *mainForm;
IXYContainer *mainContainer;
IWidget *imageWidget;
} imageTest
static boolean CreateMainFormimageTest*pMe)
{
……
AEERect meAeeRect;
……
IROOTFORM_GetClientRect(pMe->rootForm,&pMe->mainContainer,&meAeeRect);
……
}
但是得到的meAeeRect范围还是整个屏幕的宽和高,而不是想要的除去title和softkey的范围,
是不是我的参数传的不对,第二个参数,是不是应该传RootForm自己的IRootContainer,
可是我传这个的时候报错了
望高手指教!谢谢!