Click here to Skip to main content
15,894,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 4 Views with CSplitterWnd - Help needed Pin
Mark Salsbery8-Feb-07 7:16
Mark Salsbery8-Feb-07 7:16 
QuestionConfiguration File Pin
priyank_ldce6-Feb-07 1:46
priyank_ldce6-Feb-07 1:46 
GeneralRe: Configuration File Pin
prasad_som6-Feb-07 2:00
prasad_som6-Feb-07 2:00 
Questiontab control Pin
harsh_29616-Feb-07 1:16
harsh_29616-Feb-07 1:16 
AnswerRe: tab control Pin
Rage6-Feb-07 1:36
professionalRage6-Feb-07 1:36 
GeneralRe: tab control Pin
harsh_29616-Feb-07 19:11
harsh_29616-Feb-07 19:11 
AnswerRe: tab control Pin
Naveen6-Feb-07 1:38
Naveen6-Feb-07 1:38 
GeneralRe: tab control Pin
harsh_29616-Feb-07 19:12
harsh_29616-Feb-07 19:12 
This below event handler belongs to ADD button of main dialogue
void CNewUiDlg::OnBnClickedAdd()
{

CPhoneBook m_ph(this);
CString val;
int mark=m_mainlist.GetSelectionMark();
m_checken=m_mainlist.GetItemText(mark,0);
//m_ph.AddtoPB(m_checken);
}


This below function belongs to class that is controling tab pane

BOOL CPhoneBook::AddtoPB(CString s)
{
m_phoneval=s;
m_listphone.InsertItem(0,m_phoneval);
m_listphone.SetItemText(0,1,m_address);
UpdateData(false);
//MessageBox(m_phoneval); the message box displays the string

}


Instead if we add an ADD button to the tabpane itself and add the handler as below it works and displays the contents from list control of main dialogue to list control of tabpane

void CPhoneBook::OnBnClickedAdd()
{

m_listphone.InsertItem(0,m_checken);
m_listphone.SetItemText(0,1,m_address);
}

Harsha
GeneralRe: tab control Pin
Naveen6-Feb-07 19:22
Naveen6-Feb-07 19:22 
QuestionVC8 testing: #include fatal error, cannot open include file... Pin
Joan M5-Feb-07 23:44
professionalJoan M5-Feb-07 23:44 
AnswerRe: VC8 testing: #include fatal error, cannot open include file... Pin
Christian Graus5-Feb-07 23:50
protectorChristian Graus5-Feb-07 23:50 
QuestionUpdate and Sort filecontent? Pin
bosfan5-Feb-07 23:38
bosfan5-Feb-07 23:38 
AnswerRe: Update and Sort filecontent? Pin
Waldermort6-Feb-07 0:15
Waldermort6-Feb-07 0:15 
GeneralRe: Update and Sort filecontent? Pin
bosfan6-Feb-07 0:35
bosfan6-Feb-07 0:35 
AnswerRe: Update and Sort filecontent? Pin
ThatsAlok6-Feb-07 19:26
ThatsAlok6-Feb-07 19:26 
AnswerRe: Update and Sort filecontent? Pin
Hamid_RT6-Feb-07 19:46
Hamid_RT6-Feb-07 19:46 
Questioncan any one help me to make context menu in win32 API Pin
amitmistry_petlad 5-Feb-07 23:25
amitmistry_petlad 5-Feb-07 23:25 
AnswerRe: can any one help me to make context menu in win32 API Pin
Naveen5-Feb-07 23:44
Naveen5-Feb-07 23:44 
GeneralRe: can any one help me to make context menu in win32 API Pin
amitmistry_petlad 6-Feb-07 0:10
amitmistry_petlad 6-Feb-07 0:10 
GeneralRe: can any one help me to make context menu in win32 API Pin
Hamid_RT6-Feb-07 0:16
Hamid_RT6-Feb-07 0:16 
GeneralRe: can any one help me to make context menu in win32 API Pin
Waldermort6-Feb-07 0:17
Waldermort6-Feb-07 0:17 
GeneralRe: can any one help me to make context menu in win32 API Pin
Naveen6-Feb-07 0:24
Naveen6-Feb-07 0:24 
AnswerRe: can any one help me to make context menu in win32 API Pin
cmk6-Feb-07 0:35
cmk6-Feb-07 0:35 
GeneralRe: can any one help me to make context menu in win32 API Pin
amitmistry_petlad 6-Feb-07 1:04
amitmistry_petlad 6-Feb-07 1:04 
GeneralRe: can any one help me to make context menu in win32 API Pin
Naveen6-Feb-07 1:18
Naveen6-Feb-07 1:18 

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.