Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC

MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    charu123
    wrote on last edited by
    #1

    Hi, How can i save the values which are entered in the dialogs say an edit button. also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. Thanks U get wht u Give

    T 1 Reply Last reply
    0
    • C charu123

      Hi, How can i save the values which are entered in the dialogs say an edit button. also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. Thanks U get wht u Give

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      charu123 wrote: How can i save the values which are entered in the dialogs say an edit button. first, Edit button don't exist. I consider now you were talking about an Edit Box control.

      CEdit* pEdit = GetDlgItem(ICD_MYEDIT); // the ident of your control...
      CString strEditContent;
      pEdit->GetWindowText(strEditContent); // Filled with the Edit content...

      charu123 wrote: also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. you must save it outside the app (file, registry...), and search for it into OnInitDialog() to fill your control with the value (SetWindowText())


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      C 1 Reply Last reply
      0
      • T toxcct

        charu123 wrote: How can i save the values which are entered in the dialogs say an edit button. first, Edit button don't exist. I consider now you were talking about an Edit Box control.

        CEdit* pEdit = GetDlgItem(ICD_MYEDIT); // the ident of your control...
        CString strEditContent;
        pEdit->GetWindowText(strEditContent); // Filled with the Edit content...

        charu123 wrote: also how can isave values entered in combobox at runtime so that the next time i run the application the combo box gets populated with the values which were entered previously. you must save it outside the app (file, registry...), and search for it into OnInitDialog() to fill your control with the value (SetWindowText())


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        C Offline
        C Offline
        charu123
        wrote on last edited by
        #3

        I got it Thanks U get wht u Give

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups