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 know the control?

how to know the control?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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
    chikach
    wrote on last edited by
    #1

    I an handling the CTLCOLOR_EDIT message in the OnCtlColor() to change the background color of Edit Box.But I am having two edit boxes IDC_EDIT1 and IDC_EDIT2.I want edit1 to be blue and edit2 to be red. How I will know the source of the CTLCOLOR_EDIT message?

    D 1 Reply Last reply
    0
    • C chikach

      I an handling the CTLCOLOR_EDIT message in the OnCtlColor() to change the background color of Edit Box.But I am having two edit boxes IDC_EDIT1 and IDC_EDIT2.I want edit1 to be blue and edit2 to be red. How I will know the source of the CTLCOLOR_EDIT message?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      chikach wrote:

      How I will know the source of the CTLCOLOR_EDIT message?

      The second parameter.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Man who follows car will be exhausted." - Confucius

      C 1 Reply Last reply
      0
      • D David Crow

        chikach wrote:

        How I will know the source of the CTLCOLOR_EDIT message?

        The second parameter.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

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

        thank you :-)

        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