Solved

MFC VC6++ ActiveX create (new)

Posted on 2000-04-10
2
376 Views
Last Modified: 2010-04-10
What I am trying to do, is: I am creating a custom ActiveX, with 2 main classes, CEMDELAXCtrl (control class of ActiveX) and my own dialog class CDlgEmb. Now, this class (the latter) generates (fires) an event at some point, and I need to transfer this 'firing' to the ActiveX control class (CEMDELAXCtrl), because I have named 2 events in this class, which will eventually be available to the user. How do I do it?
0
Comment
Question by:patrickz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Expert Comment

by:mnewton022700
ID: 2702696
Does your dialog have access to your control class. If so, you could simply call FireEvent on your control class.

If not, is your control the parent of your dialog? If so, you can get a pointer to it by casting GetParent().
0
 

Accepted Solution

by:
yuxiliu earned 50 total points
ID: 2720500
way 1.when you insert ACX to our project, wrapper class derived from CWnd, you just need to using:
DECLARE_MASSAGE_MAP() in class declaration
and
BEGINE_MESSAGE_MAP()
// put your message here
END_MESSAGE_MAP()
then call SendMessage or Posmessge to that control

way 2. put ON_MESSAGE(YOURMESSAGE, MESSAGEHANDLER) in when you write your activex Control
then send message to your control

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question