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. Placing a control in an edit control's NC area

Placing a control in an edit control's NC area

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

    I've looked all around CP and MSDN for a way to place a control (e.g. a button) within an edit control's non-client area, but haven't had any luck. All of the implementations I have seen haven't really placed controls there, but have just mimicked the control by resizing and painting the NC area. Like this: http://www.codeproject.com/editctrl/fileeditctrl.asp[^] I tried just placing the control in the client area, but it gets painted over as soon as the user clicks in the edit box, which is ugly. Can someone point me in the right direction? Thanks.

    J 1 Reply Last reply
    0
    • D Diarrhio

      I've looked all around CP and MSDN for a way to place a control (e.g. a button) within an edit control's non-client area, but haven't had any luck. All of the implementations I have seen haven't really placed controls there, but have just mimicked the control by resizing and painting the NC area. Like this: http://www.codeproject.com/editctrl/fileeditctrl.asp[^] I tried just placing the control in the client area, but it gets painted over as soon as the user clicks in the edit box, which is ugly. Can someone point me in the right direction? Thanks.

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      Since an edit control has no non-client area the article you found is probubly the best place to start. Trust in the code Luke. Yea right!

      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