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

App not activated correctly.


App not activated correctly.

Postby russose » Jan 19, 2006 @ 2:15pm

Hallo,

I am tiring to port Blender on pocketpc and it begins to really work (http://blenderce.blogspirit.com/). I use OpenGL ES and compiled blender both on PocketPC but also on my PC.

When I run it (on PocketPC or PC), I loose the control of the application after ONE clic…Blender is not reacting anymore… if I clic on the “windows key” and then activate the Blender window… everything work good again!! ??? The same behaviour on my PocketPC! I need to program an hardware button for the today screen toactivate the Blender Window…

I tried ShowWindows, WindowPos but no sucess...

Do someone has an idea?

Thanks,
Salvatore
russose
pm Member
 
Posts: 15
Joined: Jan 19, 2006 @ 2:12pm


Postby Dan East » Jan 19, 2006 @ 3:13pm

You might not be handling the WM_LBUTTONUP properly. I seem to remember in the past handling a button down message but not button up (or vice versa) and that caused some problems.

Also, it might be calling SetCapture to capture mouse input, but not releasing it with ReleaseCapture (which should be called when handling WM_LBUTTONUP).

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby russose » Jan 19, 2006 @ 3:31pm

Thanks Don east.

Two precisons:
1) it only happens once... I mean for the first clic… then everything works fine.
I read that GetCursor position was not working for pocketpc so I only used LOWORD(lParam) and HIWORD(lParam).

I will have a better look if SetCapture is used somewhere…

2) If I create my window with the WS_VISIBLE or VISIBLE| WS_POPUP the problem is there for Win32… if I use the only style WS_POPUP, it works perfectly for Win32… but for PocketPC, then it doesn’t works!! It seems that for PocketPC, I can only use WS_VISIBLE to make Blender work…

Thanks for your help,
Salvatore
russose
pm Member
 
Posts: 15
Joined: Jan 19, 2006 @ 2:12pm


Postby Dan East » Jan 19, 2006 @ 5:47pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby russose » Jan 23, 2006 @ 1:31pm

russose
pm Member
 
Posts: 15
Joined: Jan 19, 2006 @ 2:12pm


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

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