-
February 13th, 2008, 12:20 PM
#1
draw method of activex
HI Gurus,
Is it possible to attach a dialog class in the draw method of activx ctrl class?
Code:
void CRotaryCtrl::OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)
pdc->......//(attach an cdialog subclass)
thanks
-
February 13th, 2008, 05:23 PM
#2
Re: draw method of activex
Please elaborate on "attach". It can mean different things, so it's good to hear from you instead of guessing
-
February 14th, 2008, 03:55 AM
#3
Re: draw method of activex
By attach i mean, i have a dialog class which I created in the activex project which has combobox, edit box etc.
I want to display this dialog box in the activex control draw method.
Is it possible?
-
February 14th, 2008, 12:27 PM
#4
Re: draw method of activex
It is possible, but not the right approach. Draw is for drawing , not for creating dialog box.
-
February 14th, 2008, 04:16 PM
#5
Re: draw method of activex
Is this what you're trying to do?
Gort...Klaatu, Barada Nikto!
-
February 15th, 2008, 05:36 AM
#6
Re: draw method of activex
Exactly Mike, that's what i am trying to do.
But when i do exactly what the article says i get error :winocc.cpp line 307. Basically it doesn't like the movewindow method. I tested the control using visual studio activex test control container. Tried with IE as the article says same error message.
Any suggestion?
Last edited by tarunk; February 15th, 2008 at 05:58 AM.
Reason: adding
-
April 10th, 2013, 12:18 PM
#7
Re: draw method of activex
Hi,
I'm trying to do the same thing demonstrated by the article:
Originally Posted by Mike Harnad
Is this what you're trying to do?
But keep getting errors, i'm using vs2010, my project is identical as the one posted here, did you guys figured out what was the problem?
Thanks in Advance!
-
April 15th, 2013, 10:04 AM
#8
Re: draw method of activex
Well, if you're saying.
I'm shallow at mfc development, just posting what works out for my problem.
But anyway thanks for the correction! i'll try not to misguide people (unwittingly) again, haha.
Thanks for the post link, this will surely help me with other issues.
Cheers!
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
|