[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 486: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 115: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4675: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4677: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4678: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4679: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3817)
PocketMatrix • View topic - Problem restoring today screen
This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problem restoring today screen


Problem restoring today screen

Postby jasjenl » Jun 13, 2002 @ 6:52pm

Previous projects I have developed using gapidraw were partly based on the samples that come with the SDK and were using MFC based classes to create the main application window. In an attempt to make things somehow cleaner in my latest project I decided to ditch the mfc classes like CMainFrame and such and create my own window manually using plain CreateWindowEx. However, now when my application exits, the right lower part of the today screen isn't properly restored. You have to manually click on the button that is on the right of the lower bar of the today screen to have it redrawn correctly again. So I guess I'm doing something wrong when exiting my app, but I'm not sure what. What I'm doing when exiting the app is this:
first, delete the CGapiDisplay object
then, call SHFullScreen(m_hWndMain , SHFS_SHOWSTARTICON |SHFS_SHOWTASKBAR | SHFS_SHOWSIPBUTTON);
then, call DestroyWindow (m_hWndMain)

So, what am I missing here?
jasjenl
pm Member
 
Posts: 11
Joined: Apr 17, 2002 @ 2:25pm


Postby Ionitor » Jun 13, 2002 @ 7:38pm

What exactly do you have on your Today screen, and what isn't being redrawn? Are you talking about the command bar across the bottom, or is it some Today plug-in, or are you using one of the Today replacements? I often have trouble with the Today bar redisplaying itself correctly, even when exiting from non-GAPI apps. I think that a lot of plug-ins have redrawing issues.
One option would be to, before exiting your app, find the current window and force it to redraw by sending a WM_PAINT message targeted at the entire surface--it's possible that the system isn't doing that for some reason.

-Ionitor
Ionitor
pm Member
 
Posts: 15
Joined: May 17, 2002 @ 9:31pm


Postby jasjenl » Jun 13, 2002 @ 7:56pm

jasjenl
pm Member
 
Posts: 11
Joined: Apr 17, 2002 @ 2:25pm


Postby Ionitor » Jun 13, 2002 @ 8:18pm

Ionitor
pm Member
 
Posts: 15
Joined: May 17, 2002 @ 9:31pm


Postby Hosed » Jun 13, 2002 @ 8:35pm

User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Ionitor » Jun 13, 2002 @ 9:29pm

Hosed,

I realize that your code snippet is editted to make your point clear, but I thought I would point out to others that might use it as a sample that PeekMessage should generally be put in an inner loop to make sure that all messages are processed. That way, especially if your frame rate is particularly low, you'll process multiple button/stylus presses that occur during a single frame.

Also, your idea makes sense and brings up a good point--you should always ensure that no additional game code is run after a window is destroyed.

-Ionitor
Ionitor
pm Member
 
Posts: 15
Joined: May 17, 2002 @ 9:31pm


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