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. Can DDX_Text be used with CTEXT resource item

Can DDX_Text be used with CTEXT resource item

Scheduled Pinned Locked Moved C / C++ / MFC
learning
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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT Thankx

    L V 2 Replies Last reply
    0
    • F ForNow

      The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT Thankx

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What assertion, and what code?

      F 1 Reply Last reply
      0
      • F ForNow

        The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT Thankx

        V Offline
        V Offline
        Victor Nijegorodov
        wrote on last edited by
        #3

        ForNow wrote:

        The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT

        You can use DDX_Text for static controls. Another way is to create the control member variable (using DDX_CONTROL) and then use this variable to call SetWindowText. Where and how do you call the DDX_Text from? Perhaps you call it before the base class OnInitDialog was called?

        F 1 Reply Last reply
        0
        • V Victor Nijegorodov

          ForNow wrote:

          The Documentation says DDX_Text is for a edit control and I am getting an assertation So maybe I have to use GetDlgItem and SetWindowText to set the text of the CTEXT

          You can use DDX_Text for static controls. Another way is to create the control member variable (using DDX_CONTROL) and then use this variable to call SetWindowText. Where and how do you call the DDX_Text from? Perhaps you call it before the base class OnInitDialog was called?

          F Offline
          F Offline
          ForNow
          wrote on last edited by
          #4

          I apologize I had the wrong dialog identifier thus the wrong dialog control

          1 Reply Last reply
          0
          • L Lost User

            What assertion, and what code?

            F Offline
            F Offline
            ForNow
            wrote on last edited by
            #5

            I apologize I had the wrong dialog identifier thus the wrong dialog control

            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