When screen is Maximized, part of display disappears 
Author Message
 When screen is Maximized, part of display disappears

I would have thought this was impossible if I hadnt seen it myself!

My program generates random digits and keeps them in an array in my Document
class. My Views OnDraw() uses the data in the Document to show a 10x10
grid, each cell containing a digit 0-9. Theres no problem if the
applications CMainFrame is not maximized: 100 digits show on screen.

But when its maximized, sometimes a digit just drops out. For example,
the 5 might not appear throughout the grid. Theres a blank where the 5s
should be. When I flip back to non-maximized, the 5s are there, as they
should be. I can make them come and go, just by swapping Maximize and

It doesnt always happen, but once it starts it happens for the rest of the
session - the user can order up fresh grids of random numbers, on command,
and they are all affected the same.

Its not always the same digit. Ive had a 2 drop out on me, and a 3.

The data is definitely there in the Document. Anyway, it wouldnt appear on
the non-maximized screen if it werent. Ive single-stepped as far as I can,
right through DrawText(). You could say Ive seen the ink for the 5 drip
right off the nib of the pen but it doesnt appear.

The user can (on command) choose to see the digits represented as numbers
(1=A, 2=B5=E). If the 5 has dropped out on the Maximized screen and the
user chooses Letters, Es suddenly appear! (as they should). Switch back to
Numbers, and the Es are replaced by nothing. And yet its all coming from
the same data source.

Is there any known bug in DrawText()? or in the Maximizing process?

Im using VC++6.0 (no service packs); Pentium II MMX.

I'm posting this more for everyone's general amu{*filter*}t than in the
expectation of a solution... but if anyone has any ideas at all, I'd be
extremely grateful.

Thanks. Wayne Gould.

Tue, 18 Dec 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Q: Why Maximize,Minimize and CLose Box disappear?

2. Help, system command mysteriously disappeared when maximized

3. When am I maximized???

4. What am I doing wrong (part 2)

5. Maximize, maximize and more maximize...

6. system button on Windows application disappear (-minimize,full screen,* close)

7. Problem: I need to capure a part of the screen

8. Saving Part of Screen to Image File

9. Q: How can I Repaint the entire or part of the screen

10. How can I Repaint the entire or part of the screen

11. Copy part of the screen to memory

12. I am stuck in FULL screen view.


Powered by phpBB® Forum Software