LudoEN
2008-10-16 15:09:03 UTC
Hi All!
I developp a new MFC application and i try to use the new MFC feature pack...
Now i've got problems with the CMFCOutlookBar. I want to add tabs into the
CMFCOutlookBar control but this tabs come from CDialog I make in the
ressource editor. Here is the piece of code:
m_studyDlg.Create(IDD_DLG_STUDY, &m_wndOutlookBar);
m_imgPropDlg.Create(IDD_DLG_IMG_PROPERTY, &m_wndOutlookBar);
CMFCOutlookBarTabCtrl* pOutlookBar =
(CMFCOutlookBarTabCtrl*)m_wndOutlookBar.GetUnderlyingWindow();
str.LoadString(IDS_STUDY);
pOutlookBar->AddTab(&m_studyDlg, str, -1, FALSE);
str.LoadString(IDS_IMG_PROPERTY);
pOutlookBar->AddTab(&m_imgPropDlg, str, -1, FALSE);
So this code adds my windows correctly but when I close the application and
restart, the order od the window is wrong and I've got also the wrong title
(the same for each)! Maybe a bug with the SaveState mechanism?
If I use the AddControl method like in the MFC Sample, I can't display my
CDialog windows!
Please, any ideas?
I developp a new MFC application and i try to use the new MFC feature pack...
Now i've got problems with the CMFCOutlookBar. I want to add tabs into the
CMFCOutlookBar control but this tabs come from CDialog I make in the
ressource editor. Here is the piece of code:
m_studyDlg.Create(IDD_DLG_STUDY, &m_wndOutlookBar);
m_imgPropDlg.Create(IDD_DLG_IMG_PROPERTY, &m_wndOutlookBar);
CMFCOutlookBarTabCtrl* pOutlookBar =
(CMFCOutlookBarTabCtrl*)m_wndOutlookBar.GetUnderlyingWindow();
str.LoadString(IDS_STUDY);
pOutlookBar->AddTab(&m_studyDlg, str, -1, FALSE);
str.LoadString(IDS_IMG_PROPERTY);
pOutlookBar->AddTab(&m_imgPropDlg, str, -1, FALSE);
So this code adds my windows correctly but when I close the application and
restart, the order od the window is wrong and I've got also the wrong title
(the same for each)! Maybe a bug with the SaveState mechanism?
If I use the AddControl method like in the MFC Sample, I can't display my
CDialog windows!
Please, any ideas?