How to hide a dialog until it is completely painted

K

Kevin

Hi, all!

I have an issue where an "owner-drawn" popup keyboard (which is just a
CDialog positioned at the bottom of the screen) is painting slowly. In
other words, the keyboard keys are painting one by one.

Is there a function I can call (or some other setting I can use) to tell
Windows not to physically display the dialog until all of the controls
are finished painting? I other words, I want the keyboard to "pop" onto
the screen, just like the SIP does.

I am using:
* eMbedded Visual C++ 4.0
* No .NET functionality/libraries
* Pocket PC 2003 / WinCE 4.2

Thanks,
Kevin
 
P

Paul G. Tobey [eMVP]

You could say that the content of your window is not what you're trying to
paint there, but a single bitmap. Whenever you need to be painted, you just
BitBlt the bitmap onto the screen. I think that's actually how the SIPs
normally do it. There's little reason for them to custom-paint them every
time, since you can't move the keys. You need the bitmap that you want to
show, a list of locations where you'll paint the black when a key is pressed
(and where tapping on the keypad will generate each character). That should
just about do it.

Can we ask why you're posting in a Compact Framework group with a question
that specifically does *not* apply to .NET? Just curious... FYI, I'd say
that microsoft.public.windowsce.embedded.vc is the right place for most eVC
questions.

Paul T.
 
K

Kevin

Sorry, my mistake. I was using CF1 before on another project. It was
simply an oversight. I'll post the question in the other newsgroup.

Thanks,
Kevin
 
P

Paul G. Tobey [eMVP]

It's not a problem and I'm sure that you'll get a variation of the same
response there. That's how you'd speed it up...

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top