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

display external image


display external image

Postby JG » Apr 7, 2003 @ 12:20pm

JG
 


Postby JG » Apr 7, 2003 @ 6:46pm

JG
 


Postby ppcStudios » Apr 7, 2003 @ 11:22pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby JG » Apr 8, 2003 @ 10:13am

hmmm... I tried it on desktop and on PPC too

I think the problem was:
I opened GapiDraw diplay under normal windowed application, together, and/but there I used another imgdecmp.h routine to open another image in the windowed main WM_DISPLAY message. And I'm afraid it was hold to use by the GapiDraw (althrough that another image was displayed correctly and I tried to close all opened resources and loops by the imgdecmp).

If I deleted the above, I got external image in GapiDraw display.

BTW: what is the best way to use GapiDraw together with normal windowed or dialog application?

I added GapiDraw that lines:
::ZeroMemory(&config, sizeof(GDAPPCONFIG));
config.hInstance = hInst;
config.pAppTitle = TEXT("MAP");
config.dwWindowIcon = IDI_MAP;
config.dwDisplayMode = GDDISPMODE_NORMAL;
config.dwTargetFPS = 30;
CMyApplication myapp(config);
return myapp.Run();

right after normal (within BOOL InitInstance):
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);

and it is working fine.

but: I can only switch the focus between normal window and GapiDraw screen, and I cannot access GapiDraw from the base application/menu.
for example:
myapp.Minimize() //not work
CMyApplication::Run //not work too

any suggestions?
JG
 


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

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