Click here to Skip to main content
15,887,888 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COM interface disappears from ROT Pin
Code-o-mat2-Aug-10 1:59
Code-o-mat2-Aug-10 1:59 
GeneralRe: COM interface disappears from ROT Pin
Phil J Pearson2-Aug-10 2:07
Phil J Pearson2-Aug-10 2:07 
AnswerRe: COM interface disappears from ROT Pin
Phil J Pearson2-Aug-10 2:19
Phil J Pearson2-Aug-10 2:19 
GeneralRe: COM interface disappears from ROT Pin
Code-o-mat2-Aug-10 2:24
Code-o-mat2-Aug-10 2:24 
QuestionClistCtrl Pin
alexander 19831-Aug-10 23:59
alexander 19831-Aug-10 23:59 
AnswerRe: ClistCtrl Pin
«_Superman_»2-Aug-10 0:14
professional«_Superman_»2-Aug-10 0:14 
AnswerRe: ClistCtrl Pin
David Crow2-Aug-10 2:49
David Crow2-Aug-10 2:49 
AnswerRe: ClistCtrl Pin
bleedingfingers2-Aug-10 3:18
bleedingfingers2-Aug-10 3:18 
What others said is right. You have to store the data - the data that's supposed to be shown - elsewhere and in order to show that data in the control, you have to feed that, may be through the dialog object, may be something like this.

CMyDialog : public CDialog
{
public:
CMyDialog(CListCtrlData *pd):m_pd(pd)...
BOOL OnInitDialog(...)
{
//...
// fill the list ctrl with the data
//...
}
private:
CListCtrlData *m_pd;
};

CListCtrlData gDataA;

void SomeFunction()
{
CMyDialog dlg(&gDataA);
dlg.DoModal();
}

CListCtrlData gDataB;

void SomeOtherFunction()
{
CMyDialog dlg(&gDataB);
dlg.DoModal();
}


If the data is supposed to be editable, just make sure that your data class has appropriate methods to update and call these methods from the relevant event handlers for the control.
byte till it megahurtz

AnswerRe: ClistCtrl Pin
KarstenK2-Aug-10 4:02
mveKarstenK2-Aug-10 4:02 
QuestionGet session based Cookies in C++ BHO Pin
Aendy1-Aug-10 22:16
Aendy1-Aug-10 22:16 
AnswerRe: Get session based Cookies in C++ BHO Pin
«_Superman_»1-Aug-10 23:27
professional«_Superman_»1-Aug-10 23:27 
GeneralRe: Get session based Cookies in C++ BHO Pin
Aendy2-Aug-10 0:46
Aendy2-Aug-10 0:46 
Questionfailed to start because MSVCP71.dll was not found ! ? Pin
zon_cpp1-Aug-10 19:48
zon_cpp1-Aug-10 19:48 
AnswerRe: failed to start because MSVCP71.dll was not found ! ? Pin
Richard MacCutchan1-Aug-10 21:25
mveRichard MacCutchan1-Aug-10 21:25 
QuestionCDateTimeCtrl Pin
john56321-Aug-10 6:21
john56321-Aug-10 6:21 
Question[solved]RichEdit control in Dialog: "Retrun" does'nt Work ! Pin
stephen_young1-Aug-10 4:26
stephen_young1-Aug-10 4:26 
AnswerRe: RichEdit control in Dialog: "Retrun" does'nt Work ! Pin
Mattias G1-Aug-10 7:24
Mattias G1-Aug-10 7:24 
GeneralRe: RichEdit control in Dialog: "Retrun" does'nt Work ! Pin
stephen_young1-Aug-10 12:23
stephen_young1-Aug-10 12:23 
AnswerRe: RichEdit control in Dialog: "Retrun" does'nt Work ! Pin
Code-o-mat1-Aug-10 8:14
Code-o-mat1-Aug-10 8:14 
GeneralRe: RichEdit control in Dialog: "Retrun" does'nt Work ! Pin
stephen_young1-Aug-10 12:26
stephen_young1-Aug-10 12:26 
GeneralRe: RichEdit control in Dialog: "Retrun" does'nt Work ! Pin
Code-o-mat1-Aug-10 21:54
Code-o-mat1-Aug-10 21:54 
QuestionHow do I dock panes stacked on top of each other? Pin
Mattias G1-Aug-10 3:11
Mattias G1-Aug-10 3:11 
AnswerRe: How do I dock panes stacked on top of each other? Pin
Mattias G1-Aug-10 3:15
Mattias G1-Aug-10 3:15 
GeneralRe: How do I dock panes stacked on top of each other? Pin
Iain Clarke, Warrior Programmer3-Aug-10 2:12
Iain Clarke, Warrior Programmer3-Aug-10 2:12 
QuestionPlugin Abstract Interface idea Pin
saiyuk6=731-Jul-10 23:23
saiyuk6=731-Jul-10 23:23 

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.