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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CRichEditCtrl onthe Fly

CRichEditCtrl onthe Fly

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

    Hi Iam trying to create a CRichEditCtrl ( like a popup wondow ) to display a certain text within a CListCtrl when the length of hte text in one of the column of the ListCtrl exceeds 256 characters. This i smy problem : y = 10 ( say ) CRichEditCtrl* myCtrl -= new CRichEditCtrl; myCtrl->Create(WS_VISIBLE | WS_POPUPWINDOW | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY , CRect(x,y - 20, x+ 70, y - 90 ), this, 5001); where this refers to the Handle of the Parent Window the application crashes at this point. Pl. explain me the reason. regards Sankar regards Sankar

    T 1 Reply Last reply
    0
    • S sankar

      Hi Iam trying to create a CRichEditCtrl ( like a popup wondow ) to display a certain text within a CListCtrl when the length of hte text in one of the column of the ListCtrl exceeds 256 characters. This i smy problem : y = 10 ( say ) CRichEditCtrl* myCtrl -= new CRichEditCtrl; myCtrl->Create(WS_VISIBLE | WS_POPUPWINDOW | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY , CRect(x,y - 20, x+ 70, y - 90 ), this, 5001); where this refers to the Handle of the Parent Window the application crashes at this point. Pl. explain me the reason. regards Sankar regards Sankar

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      It seems that rich edit can't be a popup window - it must be a child. That's what MSDN says about CRichEditCtrl styles: "Apply the following window styles to an edit control: WS_CHILD - Always." You should create a popup as CWnd-derived class. This popup window should have one child - CRichEditCtrl, probably occupying the whole client area. Tomasz Sowinski -- http://www.shooltz.com.pl

      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