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. Dynamic Created CEdit using CreateEx

Dynamic Created CEdit using CreateEx

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

    I used the below code for creating CEdit dynamically, code compiled but editbox is not visible on screen [CODE] CEdit *tedit = new CEdit: tedit->CreateEx(WS_EX_CLIENTEDGE , L"Edit", L" ", ES_AUTOHSCROLL | ES_LEFT | WS_BORDER | WS_VISIBLE | WS_CHILD ,this,IDC_EDIT); [/CODE]

    L V 2 Replies Last reply
    0
    • B Beginner_mfc

      I used the below code for creating CEdit dynamically, code compiled but editbox is not visible on screen [CODE] CEdit *tedit = new CEdit: tedit->CreateEx(WS_EX_CLIENTEDGE , L"Edit", L" ", ES_AUTOHSCROLL | ES_LEFT | WS_BORDER | WS_VISIBLE | WS_CHILD ,this,IDC_EDIT); [/CODE]

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

      You need to provide more details of your code. That line should work according to the documentation. There must be something else that needs to be done.

      1 Reply Last reply
      0
      • B Beginner_mfc

        I used the below code for creating CEdit dynamically, code compiled but editbox is not visible on screen [CODE] CEdit *tedit = new CEdit: tedit->CreateEx(WS_EX_CLIENTEDGE , L"Edit", L" ", ES_AUTOHSCROLL | ES_LEFT | WS_BORDER | WS_VISIBLE | WS_CHILD ,this,IDC_EDIT); [/CODE]

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

        Does it compile? It looks like the parameter CRect is missing. Other info you could find here: [How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog](http://forums.codeguru.com/showthread.php?564861-How-to-do-flat-style-of-CEdit-(EDITTEXT)-and-CComboBox-in-CDialog&p=2236489#post2236489)

        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