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. Completely custom Edit control

Completely custom Edit control

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

    Hey guys. I am trying to figure out how i can create totally custom Edit control (something like CEdit, but i do all the painting). Something like this one in Vista's explorer, beautiful semitransparent search entry control. I have started with MFC (myEdit : CEdit) and overriding a different stuff, but the effect is actually miserable. For example it paints in OnChar its ugly white background color and there seems no way to get rid of it. Another question, this blinking cursor which indicates that a control has focus and user can enter some chars into Edit control - how windows paints it? Can you point me to a place where i can find complete information regarding implementation of Edit / Entry controls, or maybe share some knowledge with which window messages should i mess, should i go with MFC or plain Win32 API, etc. Thanks

    011011010110000101100011011010000110100101101110 0110010101110011

    C 1 Reply Last reply
    0
    • C csrss

      Hey guys. I am trying to figure out how i can create totally custom Edit control (something like CEdit, but i do all the painting). Something like this one in Vista's explorer, beautiful semitransparent search entry control. I have started with MFC (myEdit : CEdit) and overriding a different stuff, but the effect is actually miserable. For example it paints in OnChar its ugly white background color and there seems no way to get rid of it. Another question, this blinking cursor which indicates that a control has focus and user can enter some chars into Edit control - how windows paints it? Can you point me to a place where i can find complete information regarding implementation of Edit / Entry controls, or maybe share some knowledge with which window messages should i mess, should i go with MFC or plain Win32 API, etc. Thanks

      011011010110000101100011011010000110100101101110 0110010101110011

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      there are a number of completely custom edit controls/text editors here on CP that you could look at. it's a lot of work to write your own editor, but that's the best way to get the exact features you want. CEdit can only do so much...

      csrss wrote:

      this blinking cursor which indicates that a control has focus and user can enter some chars into Edit control

      see SetCaretPos. see this, too[^].

      image processing toolkits | batch image processing

      C 1 Reply Last reply
      0
      • C Chris Losinger

        there are a number of completely custom edit controls/text editors here on CP that you could look at. it's a lot of work to write your own editor, but that's the best way to get the exact features you want. CEdit can only do so much...

        csrss wrote:

        this blinking cursor which indicates that a control has focus and user can enter some chars into Edit control

        see SetCaretPos. see this, too[^].

        image processing toolkits | batch image processing

        C Offline
        C Offline
        csrss
        wrote on last edited by
        #3

        Thanks very much, this Caret thing info helped a lot :)

        011011010110000101100011011010000110100101101110 0110010101110011

        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