Access Child Window Conrols In Parent Window Class

Discussion in 'MFC' started by ankurk, Aug 8, 2007.

  1. ankurk

    ankurk New Member

    Joined:
    Aug 8, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Hi i am creating several small child window dialogs in a parent window at run time , now i have problems accessing the child window dialog controls ie edit box etc of a child window in parent dialog class now i want to use the text entered by user in child window edit box. plz help

    Thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You have 2 options.

    1. Use GetDlgItem and GetDlgItemText functions.
    2. If you have the dialog classes for such dialogs have the get member method to do your job.
     
  3. ankurk

    ankurk New Member

    Joined:
    Aug 8, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Thanks A Lot Dude For Such A Fast Reply

    Keep It Up!!!!!!!!!!
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    My pleasure.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice