Re: GetClientRect gives the wrong client size for PDA with VGA screen
r_z_aret_at_pen_fact.com
Date: 03/07/05
- Next message: r_z_aret_at_pen_fact.com: "Re: query on pocket pc emulator and device"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Deployment and Volatile memory"
- In reply to: John \(Il Joong\) Kim: "GetClientRect gives the wrong client size for PDA with VGA screen"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 07 Mar 2005 14:48:06 -0500
On Sun, 6 Mar 2005 18:36:43 +0900, "John \(Il Joong\) Kim"
<jkim@nospam.com> wrote:
>Hi,
>
>I have a problem with GetClientRect function. It gives the wrong client size
>for PDA with VGA screen (e.g. HP iPAQ hx4700).
Perhaps SystemParametersInfo (with SPI_GETWORKAREA) or
GetSystemMetrics will work.
>
>I calculate the client screen size on OnInitialUpdate event. Client size
>should be 480x536, but GetClientRect gives 480x562. I'm using eVC++ 4.0
>sp3/WM 2003 SDK
>
>I suspect this problem was caused by the ininitial size of "CCeCommandBar".
>But, I'm sure about this.
>
>Interestingly though, After WM_SETTINGCHANGE event has been called,
>GetClientRect give the right size!
>
>How to work around this problem?
>
>Thanks in advance,
>John
>
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com
- Next message: r_z_aret_at_pen_fact.com: "Re: query on pocket pc emulator and device"
- Previous message: r_z_aret_at_pen_fact.com: "Re: Deployment and Volatile memory"
- In reply to: John \(Il Joong\) Kim: "GetClientRect gives the wrong client size for PDA with VGA screen"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|