symbian 基本问题
刚看了一个程序,以前没注意,现在想研究一下
在VIEW中
void CSocketsAppView::ConstructL( const TRect& aRect )
{
SetRect( aRect );
ActivateL();
}
在UI中
void CSocketsAppUi::ConstructL()
{
BaseConstructL();
// Create view
iAppView = CSocketsAppView::NewL( ClientRect() );
AddToStackL( iAppView );
}
我是不明白为什么在UI里实例化VIEW时传给了VIEW一个
ClientRect()参数
在VIEW里又做了 SetRect( aRect );
使用了此参数
这么做目的是什么
ClientRect() ,SetRect( aRect );各自的作用是什么
请高手指点