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. DialogBar

DialogBar

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
5 Posts 3 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.
  • T Offline
    T Offline
    thenewbee
    wrote on last edited by
    #1

    Iam new to MFC. I have a Dialog Bar having a text box attached to toolbar. When i try to change the value of that text box i get an error - something like unsupported action. When i debugged i came to know that its showing error on UpdateData(TRUE) MY code is class A{ . . . MyDlgBar obj; obj.Value="xxxxxx";// value is a public variable obj.UpdateValue(); . . . } ******** void MyDlgBar::UpdateValue(){ . . SetDlgItemText(IDC_EDIT1,Value); UpdateData(TRUE); . . } Whats the reason for this . . .

    R 1 Reply Last reply
    0
    • T thenewbee

      Iam new to MFC. I have a Dialog Bar having a text box attached to toolbar. When i try to change the value of that text box i get an error - something like unsupported action. When i debugged i came to know that its showing error on UpdateData(TRUE) MY code is class A{ . . . MyDlgBar obj; obj.Value="xxxxxx";// value is a public variable obj.UpdateValue(); . . . } ******** void MyDlgBar::UpdateValue(){ . . SetDlgItemText(IDC_EDIT1,Value); UpdateData(TRUE); . . } Whats the reason for this . . .

      R Offline
      R Offline
      Rajkumar R
      wrote on last edited by
      #2

      Hi, check whether you created the dialogbar using Create() function. MyDlgBar obj; I think the constuctor donot create the window. Best Regards Raj

      V 1 Reply Last reply
      0
      • R Rajkumar R

        Hi, check whether you created the dialogbar using Create() function. MyDlgBar obj; I think the constuctor donot create the window. Best Regards Raj

        V Offline
        V Offline
        vivekphlp
        wrote on last edited by
        #3

        The dialog bar is being displayed but the above said functionality is not working... (passing a value to the dialog bar)

        Proud To Be an Indian

        R 1 Reply Last reply
        0
        • V vivekphlp

          The dialog bar is being displayed but the above said functionality is not working... (passing a value to the dialog bar)

          Proud To Be an Indian

          R Offline
          R Offline
          Rajkumar R
          wrote on last edited by
          #4

          Hi, What the MyDlgBar::DoDataExchange() does?

          T 1 Reply Last reply
          0
          • R Rajkumar R

            Hi, What the MyDlgBar::DoDataExchange() does?

            T Offline
            T Offline
            thenewbee
            wrote on last edited by
            #5

            i dint change it . . . it have the default code some DDX_Text(pDX, IDC_EDIT1, m_strIndicator); where //{{AFX_DATA_INIT(CIndicator) m_strIndicator = _T("hi"); //}}AFX_DATA_INIT

            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