Click here to Skip to main content
15,903,012 members

Comments by Member 11482033 (Top 5 by date)

Member 11482033 16-Apr-15 8:24am View    
when i changed the TAB in my app, this method will get called.
And i just want to create Model dialog while switching the tab. But i create Modeless dlg its working fine with Create()(without error).. and i just wanna to create model dialog(using DoMdal())

My method is...

void ParentClassName::OnSelchange(NMHDR* pNMHDR, LRESULT* pResult)
{
// Get the number of the currently selected tab, and show it

ShowWindowNumber(m_cTab.GetCurFocus());
if(m_cTab.GetCurFocus() == 1){
CModeless m_pmodeless;
m_pmodeless.DoModal();
}
pNMHDR = NULL;
pResult = NULL;
}
Member 11482033 16-Apr-15 8:24am View    
when i changed the TAB in my app, this method will get called.
And i just want to create Model dialog while switching the tab. But i create Modeless dlg its working fine with Create()(without error).. and i just wanna to create model dialog(using DoMdal())

My method is...

void ParentClassName::OnSelchange(NMHDR* pNMHDR, LRESULT* pResult)
{
// Get the number of the currently selected tab, and show it

ShowWindowNumber(m_cTab.GetCurFocus());
if(m_cTab.GetCurFocus() == 1){
CModeless m_pmodeless;
m_pmodeless.DoModal();
}
pNMHDR = NULL;
pResult = NULL;
}
Member 11482033 13-Apr-15 8:25am View    
For setting data into edit box from other class, I need to write an event like on button click. But in my case, I need to set data directly without event.
Member 11482033 13-Apr-15 8:19am View    
actually I need to do is, I am having a modeless dialog while clicking on OK button I need to pass some data on other dialog edit box. I am setting that data in Dialog constructor, But its assertion failed message is coming.
I need help.. Thanks in advanced
Member 11482033 9-Apr-15 6:38am View    
I tried your suggestion but I'm getting ..

---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!

Program: ...diaformat Latest 30-12-2014\Debug\LipsTimeCodeApplication.exe
File: f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\winocc.cpp
Line: 245