This site is no longer active and is available for archival purposes only. Registration and login is disabled.

TrueVGA stylus


TrueVGA stylus

Postby BIGBEN » May 12, 2005 @ 5:56pm

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Re: TrueVGA stylus

Postby Kak » May 12, 2005 @ 9:05pm

User avatar
Kak
pm Member
 
Posts: 291
Joined: Jul 26, 2003 @ 12:24pm
Location: Zannarkand, Spira


Postby Presto » May 12, 2005 @ 9:39pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby fast_rx » May 13, 2005 @ 3:39am

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby BIGBEN » May 13, 2005 @ 8:15am

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Postby v0101 » May 14, 2005 @ 10:45pm

You can detect TrueVGA with GetSystemMetrics, which will return these values in TrueVGA.

GetSystemMetrics(SM_CXSCREEN) //480
GetSystemMetrics(SM_CYSCREEN) //640

In normal VGA mode GetSystemMetrics will return 240 and 320 respectively.

You can avoid having to scale down the stylus coordinates if you add this resource to your project.

To add the HI_RES_AWARE resource item to your program

1. From the Insert menu, select Resource.
2. Click the Custom button.
3. Enter CEUX for the resource type.
4. Set the resource data to 01 00.
5. Click the Properties tab.
6. Rename the item to "HI_RES_AWARE", including quotes. (If the quotes are omitted, HI_RES_AWARE will be incorrectly defined as a numeric value in resource.h, and you will need to go back and delete the line from resource.h.)
7. Deselect the external file checkbox.

Taken from this link.
http://msdn.microsoft.com/library/defau ... reness.asp
v0101
pm Insider
 
Posts: 147
Joined: Feb 1, 2002 @ 12:04am


Postby jaguard » May 21, 2005 @ 3:08pm

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby BIGBEN » May 21, 2005 @ 10:47pm

User avatar
BIGBEN
pm Member
 
Posts: 281
Joined: Mar 18, 2003 @ 10:18pm
Location: Saint-Petersburg, Russia


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron