Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to hide SIP with mutiple dialog boxes? Pin
Rushikesh12324-Sep-09 2:55
Rushikesh12324-Sep-09 2:55 
Questioni have written create process now i want to terminate process but it is not terminated Pin
prerananit24-Sep-09 2:42
prerananit24-Sep-09 2:42 
AnswerRe: i have written create process now i want to terminate process but it is not terminated Pin
Nuri Ismail24-Sep-09 2:45
Nuri Ismail24-Sep-09 2:45 
GeneralRe: i have written create process now i want to terminate process but it is not terminated Pin
CPallini24-Sep-09 3:01
mveCPallini24-Sep-09 3:01 
GeneralRe: i have written create process now i want to terminate process but it is not terminated Pin
Nuri Ismail24-Sep-09 3:14
Nuri Ismail24-Sep-09 3:14 
AnswerRe: i have written create process now i want to terminate process but it is not terminated Pin
CPallini24-Sep-09 3:02
mveCPallini24-Sep-09 3:02 
QuestionAutomatic cell change event in Excel Pin
NarVish24-Sep-09 1:59
NarVish24-Sep-09 1:59 
QuestionMFC - Passing data between dialogs in Tab Control Pin
melinda_mel24-Sep-09 1:13
melinda_mel24-Sep-09 1:13 
Hi,

Question: how to pass data between two dialogs (which are in Tab Control)...
For example if we have ListBox1 in Dialog1 and we want to add string to ListBox1 from Dialog2 how to do that?
I try to include Dialog1 header file in Dialog2 and add object ( Dialog1 object_Dialog1;) in to Dialog2,
and then in handler for some button in Dialog2, I wrote:
object_Dialog1.m_ListBox1.AddString(_T("s")); //m_ListBox1 is control variable for ListBox1 in Dialog1

but that cause ASSERT in afxwin2.inl :

_AFXWIN_INLINE int CListBox::AddString(LPCTSTR lpszItem)
{ ASSERT(::IsWindow(m_hWnd)); return (int)::SendMessage(m_hWnd, LB_ADDSTRING, 0, (LPARAM)lpszItem); }


Does anybody knows how to pass data between two dialogs in Tab Control?


Best Regards
AnswerRe: MFC - Passing data between dialogs in Tab Control Pin
Franck Paquier24-Sep-09 1:24
Franck Paquier24-Sep-09 1:24 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel24-Sep-09 2:46
melinda_mel24-Sep-09 2:46 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
David Crow24-Sep-09 3:03
David Crow24-Sep-09 3:03 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel24-Sep-09 3:09
melinda_mel24-Sep-09 3:09 
AnswerRe: MFC - Passing data between dialogs in Tab Control Pin
Chuck O'Toole24-Sep-09 15:58
Chuck O'Toole24-Sep-09 15:58 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel25-Sep-09 1:39
melinda_mel25-Sep-09 1:39 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
Chuck O'Toole25-Sep-09 3:48
Chuck O'Toole25-Sep-09 3:48 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel25-Sep-09 4:06
melinda_mel25-Sep-09 4:06 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
Chuck O'Toole25-Sep-09 4:12
Chuck O'Toole25-Sep-09 4:12 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
melinda_mel25-Sep-09 4:23
melinda_mel25-Sep-09 4:23 
GeneralRe: MFC - Passing data between dialogs in Tab Control Pin
Chuck O'Toole25-Sep-09 5:58
Chuck O'Toole25-Sep-09 5:58 
QuestionForcing a window to draw itself as active Pin
Code-o-mat24-Sep-09 0:40
Code-o-mat24-Sep-09 0:40 
AnswerRe: Forcing a window to draw itself as active Pin
«_Superman_»24-Sep-09 0:53
professional«_Superman_»24-Sep-09 0:53 
GeneralRe: Forcing a window to draw itself as active Pin
Code-o-mat24-Sep-09 1:06
Code-o-mat24-Sep-09 1:06 
QuestionDate picker control is not working Pin
Pryabu23-Sep-09 23:56
Pryabu23-Sep-09 23:56 
AnswerRe: Date picker control is not working Pin
«_Superman_»24-Sep-09 0:59
professional«_Superman_»24-Sep-09 0:59 
GeneralRe: Date picker control is not working Pin
David Crow24-Sep-09 3:11
David Crow24-Sep-09 3:11 

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.