Byron,
Hey guy, thanks for the thoughts. The problem with letting the program draw the Form one time, is that it just won't work - because,
for one thing, the form keeps on changing. But also because allowing the form to make brief "appearances" before its "time" will be
cosmetically fouling to the overall screen presentation I'm trying to bring about.
Now on the other hand, that "back-buffer" idea of yours just might be a winner. The only problem is, I haven't a clue about how to
go about implementing such a scheme.
So, if anyone is monitoring this thread, and has anything to add, please feel free to jump in.
I know that MVP Bob Powell says it can't be done, -- and I'm not doubting his integrity on the matter. So excuse me if I hold out
faith that some down-and-dirty assembler trick or other can come along and get the job done. Sure, it may not be easy, but then
putting a million transistors on an integrated circuit and wiring them together weren't no simple trick either.
That's one small step for man . . .
- Stan Shankman
"Byron Cullen" <by******************@msn.com> wrote in message news:ug*************@tk2msftngp13.phx.gbl...
Stan,
Maybe you could run the program one time and let the controls draw with the
default values that you desire and then alt-printscreen a screenshot of your
form. Then edit the bitmap to clip just the client area out of the
screenshot and save that as a resource in your project.
Then you will have access to the pseudo form before it's initial paint. That
is assuming that your form is always the same size and layout when it is
first displayed.
Something else to look into is maybe drawing the form on a back buffer. I'm
not sure if this can be done but I reason that if a control can be double
buffered then a form _may_ be coerced into drawing itself to an off-screen
hDC or Graphics object. I've not done this before but it would be worth
looking into.
Byron Cullen
ThunderTools
"Stan Shankman" <st********@visi.com> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl... How do I copy a Form's image to a bitmap? - And do so before it gets to
the screen. - Stan
You cannot. The form has to be drawn on the screen before you can capture it's image.> - Bob
Thanks for the replay Bob, but let me ask you this: Would there be anyway
to fake it that you know of? You know, some way to built a "soft screen" - - a place in memory that I can "trick" the system into
thinking is the real screen - - that sort of thing. - Stan Shankman