Hi friends,
I want to know the screen width and height?
How to do this programmatically?
Thanks,
Manoj.
Hi friends,
I want to know the screen width and height?
How to do this programmatically?
Thanks,
Manoj.
ClientRect()
it will give the screen size of your appln...
In case of GUI applications, ApplicationRect is even better, and especially CEikonEnv::ScreenDevice, then CWsScreenDevice::SizeInPixels for example.
You may also succeed in creating CWsScreenDevice in GUI-less code, apparently you need a Window Server session for that.
And HAL may also help you (like EDisplayXPixels and EDisplayYPixels).
hi...
u can get it from the Container Class...
void LayoutControls()
{
// Print the Following 2 things..
Rect().Width();
Rect().Height();
}
Well, the container class is exactly the one which does not know the size of the screen. That Rect is set via SetRect in construction-time. Setting it to 5,5-10,15 obviously will not cause your display to be 5x10 pixels large.
AknLayoutUtils::LayoutMetricsRect will give you the sizes the current screen artifacts.
Download Symbian OS now! [url]http://developer.symbian.org[/url]