PocketMatrix forums

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

show command bar, cdialogbar in pocketPC when using GapiDraw

PhuongNguyen · 01 Jul 2003, 09:13 UTC
Hi,

I am using mfc, pocketpc 2000, sdi app. I want to have the command bar and a CDialogBar when drawing some image using Gapidraw, but after Flip() I get only a Fullscreen. I tried to redraw my command bar and DialogBar with different functions e.x:
ShowWindow(SW_SHOW), CommandBar_Show(),SetForegroundWindow(), ToggleFullscreen...but they don't work.

Does anyone know how to solve the problem?
Thanks in advance.
because of the way Gapi (The root of what GapiDraw is based on) works, there's really no universal way to deal with this. What most of us have done is wrote our own dialog classes and go that route. Not the best solution in terms of reused code, but it works.

I have an example of this on my site in a demo of an older engine I was writing for the PPC. http://www.planettribes.com/hosed/proje ... ngine.html
PhuongNguyen · 02 Jul 2003, 07:28 UTC — GXSetViewPort
Thank for your advice.

As far as I know, in GAPI there is a function named:
GXSetViewPort that can do the job: specify which part of the screen is for GDI objects. Is it a good idea to implement this in GapiDraw?
This is not implemented. Basically since the entire GAPI library is completely undocumented it is not sure if this would work on all devices.