Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPROCESS STATUS Pin
28-May-01 1:52
suss28-May-01 1:52 
GeneralRe: PROCESS STATUS Pin
Ghazi H. Wadi28-May-01 6:55
Ghazi H. Wadi28-May-01 6:55 
GeneralVB and C++ Pin
28-May-01 1:28
suss28-May-01 1:28 
GeneralRe: VB and C++ Pin
Christian Graus28-May-01 1:51
protectorChristian Graus28-May-01 1:51 
Generalstd::cout redirect to socket Pin
ernst.maurer28-May-01 1:07
ernst.maurer28-May-01 1:07 
GeneralClistCtrl Pin
28-May-01 1:07
suss28-May-01 1:07 
GeneralRe: ClistCtrl Pin
Christian Graus28-May-01 1:37
protectorChristian Graus28-May-01 1:37 
GeneralRe: ClistCtrl Pin
28-May-01 4:27
suss28-May-01 4:27 
I'm sorry but i'm just a beginner and i don't understand everything.to get the pointer to the parent dialog must i do like that :
m_panier.GetParent();
But if it i did is right how can i now put a fonction in the second dialog that gets the item, and gets sent the string to insert

Here a piece of my code which allows to display the index item selected (in the first dialog) in another Edit box (in the second dialog)


void CDThin::OnItemchangedListthin(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
// TODO: Add your control notification handler code here
CString strText;
CListedeprixApp* h_myApp = (CListedeprixApp *)AfxGetApp();

strText.Format(TEXT("Item index: %d\r\n "), pNMListView->iItem);
UpdateData();
m_Log3+=strText;
h_myApp->ListeDePrix() += strText;

UpdateData(FALSE);
*pResult = 0;
}

BOOL CDPanier::OnInitDialog()
{
CDialog::OnInitDialog();

// TODO: Add extra initialization here
CListedeprixApp* h_myApp = (CListedeprixApp *)AfxGetApp();
m_panier = h_myApp->ListeDePrix();
}


Confused | :confused:
Generaltoolbar in dialog can't be set check state Pin
julia28-May-01 0:58
julia28-May-01 0:58 
GeneralRe: toolbar in dialog can't be set check state Pin
Christian Graus28-May-01 1:57
protectorChristian Graus28-May-01 1:57 
GeneralTime display II Pin
27-May-01 21:47
suss27-May-01 21:47 
GeneralRe: Time display II Pin
Tomasz Sowinski28-May-01 1:11
Tomasz Sowinski28-May-01 1:11 
GeneralRe: Time display II Pin
28-May-01 13:56
suss28-May-01 13:56 
GeneralRe: Time display II Pin
Tomasz Sowinski29-May-01 0:45
Tomasz Sowinski29-May-01 0:45 
GeneralRe: Time display II Pin
Anders Molin28-May-01 2:07
professionalAnders Molin28-May-01 2:07 
Generaltine of decoding one frame Pin
27-May-01 20:27
suss27-May-01 20:27 
Generaltine of decoding one frame Pin
27-May-01 20:27
suss27-May-01 20:27 
GeneralBeginner looking for help Pin
Jason K. Dove27-May-01 19:40
Jason K. Dove27-May-01 19:40 
GeneralRe: Beginner looking for help Pin
Christian Graus27-May-01 19:51
protectorChristian Graus27-May-01 19:51 
GeneralRe: Beginner looking for help Pin
Jason K. Dove27-May-01 20:13
Jason K. Dove27-May-01 20:13 
GeneralRe: Beginner looking for help Pin
Christian Graus27-May-01 20:25
protectorChristian Graus27-May-01 20:25 
GeneralRe: Beginner looking for help Pin
Jason K. Dove27-May-01 21:05
Jason K. Dove27-May-01 21:05 
GeneralRe: Beginner looking for help Pin
Atul Dharne27-May-01 21:14
Atul Dharne27-May-01 21:14 
GeneralRe: Beginner looking for help Pin
Christian Graus27-May-01 23:14
protectorChristian Graus27-May-01 23:14 
GeneralRe: Beginner looking for help Pin
Dharne Atul28-May-01 3:29
Dharne Atul28-May-01 3:29 

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.