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. How to draw a line in Edit box?

How to draw a line in Edit box?

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

    Hello everyone. I want to draw edges for an Edit box. But I have to draw the lines inside the Edit box, because the edit box is too big. I tried to change the size of the Edit box, but I cannot make the height any smaller. The problem is that the line in the Edit box will be blocked by the Edit box. I tried to set the edit box to transparent, but I still cannot the lines. Any idea about how to fix this problem? Thanks a lot in advance. Bin

    P 1 Reply Last reply
    0
    • B bin8922

      Hello everyone. I want to draw edges for an Edit box. But I have to draw the lines inside the Edit box, because the edit box is too big. I tried to change the size of the Edit box, but I cannot make the height any smaller. The problem is that the line in the Edit box will be blocked by the Edit box. I tried to set the edit box to transparent, but I still cannot the lines. Any idea about how to fix this problem? Thanks a lot in advance. Bin

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      Derive a class from CEditBox, handle OnDraw Event and now the whole Editbox control window is all urs to draw what ever you want to.


      MSN Messenger. prakashnadar@msn.com

      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