|
-
Apr 18th, 2000, 01:06 AM
#1
Thread Starter
transcendental analytic
As noone did reply or even view my last thread, I have to post this again.
HOW DO I CHANGE THE DC TO AN EXTERNAL APPLICATIONS PICTUREBOX OR WHATEVER, THAT HAVE A DC??!?!?!? I have used Setpixelv to put a dot into it, and it shows up in that app. Then it disappears next time somethings overlapping it
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 18th, 2000, 01:44 AM
#2
Frenzied Member
You need to subclass it and trap the WM_PAINT Message, when the window gets the WM Paint message it will change the dc to whatever the APP thinks it should look like, when you process the message call the default window procedure and then change the DC to what you want it to look like.
Hope this helps
-
Apr 18th, 2000, 03:16 AM
#3
Sam,
If you could tell me how to subclass another applications window, or even place a hook with VB, I would be very grateful.
I didn't manage until now, and was under the impression that vb could not do it.
-
Apr 18th, 2000, 05:03 AM
#4
Frenzied Member
Aww Come on It's 11'o'Clock at night I'm not up for writing a huge essay on subclassing and I don't want to give you a half arsed explanation cos I really messed my machine up by crashing it every 10 mins trying to learn subclassing. I'm writing an article on it Which I'm gonna post up on this site or another similar one so I'll Point you towards it when It's finished.
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
|