|
-
September 2nd, 1999, 03:57 AM
#11
Re: Invisible ActiveX
Great! I just did not understand the problem at first.
1. Why use DoModal() etc ?
-> because your Prop-dialog ist represented as a class.
You have to instantiate the class to get an object (like you cannot say
"int = 0, but int i = 0.")
DoModal() is a method that does all the rest for you: brings up the dialog
defined in the Propclass, etc. Every dialog has to be created like this.
(except for non-modal ones.)
2. Why OnCreate and not OnDraw ?
I don't know, ask the gurus. I guess OnDraw is a lowlevel Win-method. You can use
it to draw a simle line or ellipse, but if you create another windows-object
like a dialog or another control, you mess everything up, because only after
OnDraw is done, everything has been properly created.
I *think* that OnDraw is always called if *anything* changes, like if you move
antoher window over your control and back again, OnDraw is used to
redraw what's inside. But your dialog redraws itself automatically,
so you mix things up there.
But as I said, it's pure guesswork, since I'm not an expert.
Anyway, hope works now !
:-)
best regards,
PUH
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
|