PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

CreateWindow on Axim X50v

I am creating a window on an X50v using

Code:

hWnd = CreateWindow(szWindowClass, szTitle, WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL);

I'd expect the window to be correctly positioned and to use the full screen estate, but instead
Code:

GetClientRect(hWnd, &rt);

return dimensions of 240 * 268. What am I doing wrong here? Are there new constants for the newer display formats?

Thanks,
HM
That's probably to maintain backwards compatibility.

Try getting the display size with GetSystemMetrics then explicitly create a window at that size.

Anyone know of the "proper" way to handle this?

Dan East
Hey hm,
seems you have your X50v now :) Already got some OpenGL ES samples running?

Tala
Tala wrote:Hey hm,
seems you have your X50v now :) Already got some OpenGL ES samples running?

Tala

Yeah, in the upper left corner... ;-) Well, actually I just found the cause for my problem. To disable the legacy layer, the following needs to be done:


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.)


- HM
Please release at least one thing buildable. I've got nowhere with that DLL myself.
Jinks wrote:Please release at least one thing buildable. I've got nowhere with that DLL myself.

Here you go. It links against the library you can download from aximsite.
http://www.aximsite.com/boards/showthread.php?t=57785&page=2
Also, please read the comments I posted there.

You might need to adjust your include and library path.
BTW, this is totally hacky, but at least it works. The next step from my site is to make ug work properly against this library.

- HM
Attachments:
test.zip (108 KB)
Thanks. Much appreciated!
Tala wrote:Hey hm,
seems you have your X50v now :) Already got some OpenGL ES samples running?

Tala


Where can I download OpenGL samples? I got one too :twisted:
http://sourceforge.net/projects/ogl-es has example. khronos.org opengles when you've got this platform running.

You'll need 4 .h files for /GLES for the above example. Get them from the above files section, 80a src worked for me as I was trying to keep to version 1.0 as per the comments in the aximsite. You'll need the 32K lib linked from the aximsite thread. And then just copy the car jpg to where the program expects it on the PocketPC and you have a bouncing small car.

Like I say other examples at sourceforge or khronos.
Those functions are described in here http://www.khronos.org/opengles/documentation/opengles1_0/opengles_1_0_manual.pdf
Attachments:
bits.zip (16 KB)