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. EDIT control won't work under a child window

EDIT control won't work under a child window

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 3 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.
  • S Offline
    S Offline
    scott987uk
    wrote on last edited by
    #1

    hi all, i hope im posting under the right forum here. sorry if i an't. im trying to create a EDIT (text box) control using createwindow but am having a few probs. if i create the edit control and display it on the parent window all is ok. if i display the edit control with a child window the the parent all is ok as long as i don't give the child window the property WS_CAPTION. if WS_CAPTION is not part of the child windows style all is ok, but if its added the edit control no longer works. Its displayed but you are unable to type in it. any one any ideas plz ? any help would be grate thx Scott

    A 1 Reply Last reply
    0
    • S scott987uk

      hi all, i hope im posting under the right forum here. sorry if i an't. im trying to create a EDIT (text box) control using createwindow but am having a few probs. if i create the edit control and display it on the parent window all is ok. if i display the edit control with a child window the the parent all is ok as long as i don't give the child window the property WS_CAPTION. if WS_CAPTION is not part of the child windows style all is ok, but if its added the edit control no longer works. Its displayed but you are unable to type in it. any one any ideas plz ? any help would be grate thx Scott

      A Offline
      A Offline
      act_x
      wrote on last edited by
      #2

      id try using Create(WS_CHILD|....) Engineering is the effort !

      A 1 Reply Last reply
      0
      • A act_x

        id try using Create(WS_CHILD|....) Engineering is the effort !

        A Offline
        A Offline
        act_x
        wrote on last edited by
        #3

        from MSDN docs CEdit::Create Apply the following window styles to an edit control. WS_CHILD Always WS_VISIBLE Usually WS_DISABLED Rarely WS_GROUP To group controls WS_TABSTOP To include edit control in the tabbing order Engineering is the effort !

        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