Click here to Skip to main content
15,924,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Howto get number of expanded items in a CTreeCtrl Pin
lenny_18-Mar-04 23:18
susslenny_18-Mar-04 23:18 
GeneralRe: Howto get number of expanded items in a CTreeCtrl Pin
ohadp20-Mar-04 22:47
ohadp20-Mar-04 22:47 
GeneralDistributing A Project Pin
Caoimh18-Mar-04 0:29
Caoimh18-Mar-04 0:29 
GeneralRe: Distributing A Project Pin
David Crow18-Mar-04 3:02
David Crow18-Mar-04 3:02 
GeneralRe: Distributing A Project Pin
Caoimh21-Mar-04 21:44
Caoimh21-Mar-04 21:44 
GeneralRe: Distributing A Project Pin
David Crow22-Mar-04 2:06
David Crow22-Mar-04 2:06 
Generaldll export stl map which carries built in Objects Pin
skpanda17-Mar-04 23:43
skpanda17-Mar-04 23:43 
GeneralGetting ActiveX events inside a non-view class Pin
Cedric Moonen17-Mar-04 22:50
Cedric Moonen17-Mar-04 22:50 
Hello ! I'm working with the MFC doc/view architecture.

I have created a class that encapsulate an ActiveX (a charting control). This is a generic class that is a pure base class (not deriveed from any other class). I did this so I can use it in the view in the following way:

void CMyView::OnInitialUpdate()
{
    //.... Some code
    m_pGraph = new CChartContainer();
    m_pGraph->....      // use dedicated functions of my chart container
}


So I made this to have a single object that handle all the functionality I need, especially dragging some lines and points on the chart.

I encounter a big problem:
How can I make a kind of eventsink map (or something that will enable me to get the charts events)?? It is a pure base class so I cannot declare a eventsink map.

Any idea of how I can handle this ?? A simple way: that will keep the object indepedance from the view (I need reusability) and enable me to catch the ActiveX events ???

I'm lost in this problem Confused | :confused: Dead | X|

Thanks !
GeneralRe: Getting ActiveX events inside a non-view class Pin
Cedric Moonen17-Mar-04 23:22
Cedric Moonen17-Mar-04 23:22 
GeneralRe: Getting ActiveX events inside a non-view class Pin
Branislav17-Mar-04 23:38
Branislav17-Mar-04 23:38 
GeneralRemote control Pin
Tomaz Rotovnik17-Mar-04 22:46
Tomaz Rotovnik17-Mar-04 22:46 
GeneralRe: Remote control Pin
Branislav18-Mar-04 0:24
Branislav18-Mar-04 0:24 
GeneralProcess killing Pin
SatyaDY17-Mar-04 22:43
SatyaDY17-Mar-04 22:43 
GeneralRe: Process killing Pin
vikramlinux18-Mar-04 2:17
vikramlinux18-Mar-04 2:17 
GeneralHELP:Can connect to server but server didnt receive sent data Pin
hamph17-Mar-04 22:20
hamph17-Mar-04 22:20 
GeneralRe: HELP:Can connect to server but server didnt receive sent data Pin
hamph21-Mar-04 20:38
hamph21-Mar-04 20:38 
QuestionHow should I build a header in VC++? Pin
Sadjad Shafei17-Mar-04 22:18
Sadjad Shafei17-Mar-04 22:18 
AnswerRe: How should I build a header in VC++? Pin
Branislav17-Mar-04 22:54
Branislav17-Mar-04 22:54 
AnswerRe: How should I build a header in VC++? Pin
David Crow18-Mar-04 3:11
David Crow18-Mar-04 3:11 
GeneralDHTML Edit Control (ActiveX) Pin
shahnk17-Mar-04 22:16
shahnk17-Mar-04 22:16 
GeneralKeyboard Override Pin
Prince4217-Mar-04 21:37
sussPrince4217-Mar-04 21:37 
GeneralRe: Keyboard Override Pin
Balkrishna Talele17-Mar-04 22:59
Balkrishna Talele17-Mar-04 22:59 
GeneralRe: Keyboard Override Pin
Branislav17-Mar-04 23:12
Branislav17-Mar-04 23:12 
Generalstring to _bstr_t conversion Pin
Sandeep Kulkarni17-Mar-04 21:36
Sandeep Kulkarni17-Mar-04 21:36 
GeneralRe: string to _bstr_t conversion Pin
jhwurmbach17-Mar-04 22:06
jhwurmbach17-Mar-04 22:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.