c++ - click event of WindowsFormsControlLibrary button in MFC Dialog based app -


i'm using windows forms control library elements in app.

my question is:

how perform button click event element comes windows forms control library?

so, can *library* textbox value in programdlg.cpp file this:

void cmfcapplication1dlg::onbnclickedbutton1() {     // todo: add control notification handler code here     afxmessagebox(cstring(m_ctrl1.getcontrol()->textbox1->text));     // m_ctrl1.getcontrol()->button1->click();      // how can write above line perform click event? } 

i defined m_ctrl1 in programdlg.h:

// ....  public:         cmfcapplication1dlg(cwnd* pparent = null);  // standard constructor         // data member .net user control:         cwinformscontrol<windowsformscontrollibrary1::usercontrol1> m_ctrl1; // .... 

p.s sorry bad english.

thanks.

i solved problem visiting this link.

hope useful other developers.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -