Page 1 of 1

display external image

PostPosted: Apr 7, 2003 @ 12:20pm
by JG

PostPosted: Apr 7, 2003 @ 6:46pm
by JG

PostPosted: Apr 7, 2003 @ 11:22pm
by ppcStudios

PostPosted: Apr 8, 2003 @ 10:13am
by JG
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?