mfc >> How can i get a bitmap of the clear word screen?

by lgx » Mon, 26 Apr 2004 15:20:37 GMT

How can i get a bitmap of the clear word screen?
I am developing a mfc ocx working in MsOffice2000(word2000).The Ocx can move
freely in
that word.The Ocx show semitransparent pixels with the word and the another
bitmap.So,I

must get a bitmap of the clear word screen, that mean get a bitmap without
the control.
When I wrote some code to do with moveing ocx control in MSWord2000.
Since the Ocx control need getting word screen to process a new bitmap at
new position.
To get a clear bitmap with word screen(no with the control itself), I try
Some ways ,

but,fail all.
Note: Those code are wrote in the implements of OnLButtonUp in Ocx source.
Way 1: <1>Used Shape object,move to a invisibe place,such so
spShape->IncrementLeft(1000)
<2>Get Screen Bitmap
<3>Move the ocx to properly position.
<4> redraw control whith InvalidateControl
Way2: <1>IOleObject::DoVerbusing OLEIVERB_HIDE as pararm
<2>Get Screen Bitmap
<3>IOleObject::DoVerbusing OLEIVERB_SHOW as pararm
<4> redraw control whith InvalidateControl
Way3: <1>set ocx window style with ~WS_VISIBLE
<2>Get Screen Bitmap
<3> set ocx window style with WS_VISIBLE
<4> redraw control whith InvalidateControl
Can any body help me solving the problem of getting a bitmap of the clear
word screen.




Similar Threads

1. Screen Capture (Screen Copying) example / the perils of Image/ Bitmap copying to file

2. getting screen view back to center on the screen

3. Converting 'screen print' to a bitmap or jpg

Hi all

I have to take screen prints from Word, Excel and Outlook (dialog boxes etc) 
and save them as bitmaps or jpg's.  I have never done this before and the 
only way I can think of is to copy/paste into Paint. However, when I do that 
it copies the whole screen, ie. the Word screen and the dialog box?

As I don't use Paint to any degree, I am presuming there is a 'crop' feature 
in there so I can remove part of the image that I don't need.

Is this the only way to do it or Is there an easier way??

Thank you.

Louise

4. How in Word 2007 do you Clear Recent Document Screen - Word Document management

5. Autofill entries keep getting cleared

I have had a few users complain that their autofill for the "To.." field gets 
wiped clean every so often.  I have not kept track of how long passes before 
this happens.  The users are running Windows XP Pro with Office 2003.  Any 
clues on why this happens... user error, outlook clearing out it's autofill 
automatically??

Thanks for the help!!

Brett

6. Toolbars keep getting cleared

7. Screen fonts are not clear in Office 2007

I have a 1680x1050 display running Windows Vista Premium and Office 2007.  
The fonts on all of office, and I have tried several, are not clear and sharp 
as they should be.  Am I missing a setting somewhere?

8. Telnet Clear Screen? - CSharp/C#