PocketMatrix forums

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

Problems restoring start button after using GAPI

Hello,
i have a problem in an app using gapi as well as gdi:
i activate gapi with GXOpenDisplay(...), do some direct screen drawing, then i return to an option screen using win GUI elements. this works fine only that i cannot restore the start icon in the upper left corner.
I use
BOOL ret = SHFullScreen( _hWnd, SHFS_HIDETASKBAR | SHFS_HIDESTARTICON );
to hide the takbar and start icon, then, after GXCloseDisplay() i use
SHFullScreen( _hWnd, SHFS_SHOWTASKBAR | SHFS_SHOWSTARTICON );
but the start icon is gone!

anybody got an idea?

thanx,
wintermute
I found it out myself,

for some reason, you have to hide the start icon _again_ before restoring it:

GXOpenDisplay( hWnd, GX_FULLSCREEN );
GXOpenInput();
// some cool code...
GXCloseInput();
GXCloseDisplay();
//these two lines restore the button
SHFullScreen( _hWnd, SHFS_HIDESTARTICON );
SHFullScreen( _hWnd, SHFS_SHOWSTARTICON );
wintermute, thanks for coming back by to post the solution for the rest of us.

Dan East