Hello,

I have nokia E75 phone and when I change screen orientation,
I have problem, because on the right side show white rectangle,
where text is not visible -



I use CAknForm as container and this code for screen orientation changing...

Code:
void CSmsSend::AdjustControlRect()
{
	TSize size;	
	AknLayoutUtils::LayoutMetricsSize(AknLayoutUtils::EMainPane, size);
	iContainer->SetRect(TRect(TPoint(0,0), size));	
}

void CSmsSend::HandleResourceChange(TInt aType)
{	
	if(aType == KEikDynamicLayoutVariantSwitch)
	{
		AdjustControlRect();
		iContainer->Refresh();
	}
	CAknDialog::HandleResourceChange(aType);
}
Thanks for help Petr