Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CStatic Image Painting problem Pin
Hamid_RT26-Sep-07 18:55
Hamid_RT26-Sep-07 18:55 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:29
shivrajbhosale27-Sep-07 7:29 
AnswerRe: CStatic Image Painting problem Pin
zakkas248327-Sep-07 0:20
zakkas248327-Sep-07 0:20 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:24
shivrajbhosale27-Sep-07 7:24 
GeneralRe: CStatic Image Painting problem Pin
Shog927-Sep-07 8:10
sitebuilderShog927-Sep-07 8:10 
QuestionTab Control -- dialog resource question Pin
Izk26-Sep-07 7:01
Izk26-Sep-07 7:01 
AnswerRe: Tab Control -- dialog resource question Pin
Maximilien26-Sep-07 7:13
Maximilien26-Sep-07 7:13 
GeneralRe: Tab Control -- dialog resource question Pin
Izk26-Sep-07 9:09
Izk26-Sep-07 9:09 
That's what I'm trying to do, but it doesn't seem to work. Instead when I switch tabs, the dialog goes blank. I think the problem might be that both tabs point to the IDD_INVITATION_LIST_VIEW resource, so when the tab control tries to hide/show the items, it can't hide/show the right ones (because they're the same resource). Does that sound at all correct, or way off?

Header File:
VInvitationListView m_historyListView;
VInvitationListView m_patientListView;


CPP File:
if (m_historyListView.Create(IDD_INVITATION_LIST_VIEW, &m_TabControl) == FALSE)
{
//Log Error and return
}
m_historyListView.ShowWindow(SW_SHOW);

CString str("History List");
m_TabControl.InsertItem(0, str, m_historyListView.GetSafeHwnd());

CXTPTabManagerItem* tab = m_TabControl.GetItem(0);
tab->SetData(eInvitationsTab);
m_TabControl.SetSelectedItem(tab);
m_TabControl.Reposition();

Elsewhere in same CPP File (I only add the second tab in certain scenarios):
if (m_patientListView.Create(IDD_INVITATION_LIST_VIEW, &m_TabControl) == FALSE)
{
//Log Error and return
}
m_patientListView.ShowWindow(SW_SHOW);

m_TabControl.InsertItem(1, sFullFormattedName, m_patientListView.GetSafeHwnd());

CXTPTabManagerItem* tab = m_TabControl.GetItem(1);
tab->SetData(ePatientSpecificTab);
m_TabControl.SetSelectedItem(tab);
m_TabControl.Reposition();

Izk
GeneralRe: Tab Control -- dialog resource question -- Update solution Pin
Izk27-Sep-07 8:38
Izk27-Sep-07 8:38 
GeneralRe: Tab Control -- dialog resource question -- Updated further Pin
Izk27-Sep-07 10:59
Izk27-Sep-07 10:59 
QuestionGood C site for C++ programmer Pin
Mark J. Miller26-Sep-07 5:48
Mark J. Miller26-Sep-07 5:48 
AnswerRe: Good C site for C++ programmer Pin
Jeremy Falcon26-Sep-07 5:57
professionalJeremy Falcon26-Sep-07 5:57 
GeneralRe: Good C site for C++ programmer Pin
Mark J. Miller26-Sep-07 6:19
Mark J. Miller26-Sep-07 6:19 
GeneralRe: Good C site for C++ programmer Pin
Matthew Faithfull26-Sep-07 6:32
Matthew Faithfull26-Sep-07 6:32 
GeneralRe: Good C site for C++ programmer Pin
Jeremy Falcon26-Sep-07 7:32
professionalJeremy Falcon26-Sep-07 7:32 
GeneralRe: Good C site for C++ programmer Pin
John R. Shaw26-Sep-07 22:10
John R. Shaw26-Sep-07 22:10 
QuestionRe: Good C site for C++ programmer Pin
David Crow26-Sep-07 6:04
David Crow26-Sep-07 6:04 
AnswerRe: Good C site for C++ programmer Pin
Eytukan27-Sep-07 8:05
Eytukan27-Sep-07 8:05 
AnswerRe: Good C site for C++ programmer Pin
Mark J. Miller26-Sep-07 7:41
Mark J. Miller26-Sep-07 7:41 
GeneralRe: Good C site for C++ programmer Pin
Eytukan27-Sep-07 8:15
Eytukan27-Sep-07 8:15 
AnswerRe: Good C site for C++ programmer Pin
Hamid_RT26-Sep-07 19:01
Hamid_RT26-Sep-07 19:01 
QuestionSerialization of enumerated types Pin
bob1697226-Sep-07 5:05
bob1697226-Sep-07 5:05 
AnswerRe: Serialization of enumerated types Pin
Chris Losinger26-Sep-07 5:06
professionalChris Losinger26-Sep-07 5:06 
GeneralRe: Serialization of enumerated types Pin
bob1697226-Sep-07 8:07
bob1697226-Sep-07 8:07 
GeneralRe: Serialization of enumerated types Pin
Chris Losinger26-Sep-07 8:14
professionalChris Losinger26-Sep-07 8:14 

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.