How to get application area size (i.e. screen minus app picker and status pane)?

Login to reply to this topic.
Fri, 2005-07-29 11:52
Joined: 2005-07-25
Forum posts: 19
I can measure it for one device, but I'd prefer general solution. Any help will be appreciated.

Tue, 2005-08-02 08:00
Joined: 2004-11-05
Forum posts: 57
Re: How to get application area size (i.e. screen minus app pick
I guess this has something to do with it.

TPixelsAndRotation sizeAndRotation;
CEikonEnv::Static()->ScreenDevice()->GetDefaultScreenSizeAndRotation(sizeAndRotation);
CEikonEnv::Static()->ScreenDevice()->SetScreenSizeAndRotation(sizeAndRotation);


Mags
Tue, 2005-08-02 15:10
Forum Nokia Champion
Joined: 2005-02-16
Forum posts: 45
Re: How to get application area size (i.e. screen minus app pick
Quote from: Marat Khalili
I can measure it for one device, but I'd prefer general solution. Any help will be appreciated.

See CEikAppUi::ClientRect() in the SDK doc.
Wed, 2005-08-03 09:22
Joined: 2005-07-25
Forum posts: 19
Re: How to get application area size (i.e. screen minus app pick
2 magsus: this gives me the the whole screen size, but I don't know how much I should substract from it.

2 pushl: thank you, CEikonEnv::Static()->EikAppUi()->ApplicationRect() did the trick, I forgot about it.
  • Login to reply to this topic.