|
-
Oct 15th, 2001, 09:28 PM
#1
Thread Starter
PowerPoster
BitBlt prob...
I am using BitBlt to draw a picture. I am having some probs...
1) However, when the form on which the picture is drawn is moved, resized, minimized, etc. the picture is erased. How do I prevent this happening?
2)If I move another form over my 'front' picbox, some of the picture is erased, since I can't set AutoRedraw to True.
How can I make this picture 'redraw' even when this form doesn't have focus, to prevent this problem?
Thanks.
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Oct 16th, 2001, 12:14 AM
#2
PowerPoster
Theres a Form_Paint -event.. put your drawing code there
-
Oct 16th, 2001, 01:39 AM
#3
Thread Starter
PowerPoster
That doesn't work I'm afraid.
The Form_Paint event doesn't fire here.
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Oct 16th, 2001, 02:59 AM
#4
PowerPoster
it should .. hm even tried Form_Resize?
-
Oct 16th, 2001, 05:58 AM
#5
Thread Starter
PowerPoster
Yep, it doesn't happen. The only event I have been able to capture is the GotFocus event of the control on the form with TabOrder = 0.
But that is only captured when the form is clicked or something.
I need to paint this pic again when I move something over it, without having to click on the picture to make it reappear.
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|