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. ATL / WTL / STL
  4. Message Reflection for WM_CTLCOLORSTATIC

Message Reflection for WM_CTLCOLORSTATIC

Scheduled Pinned Locked Moved ATL / WTL / STL
helptutorialquestion
4 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.
  • T Offline
    T Offline
    Tommy2k
    wrote on last edited by
    #1

    I'm making a hyperlink control which i obviously need to color but i found out that chil controls don't automaticly receive the WM_CTLCOLORSTATIC message so i thought i needed to do this with Message Reflection. I however don't have a clue how to do this except for Notify messages. Can somebody help me out?

    T 1 Reply Last reply
    0
    • T Tommy2k

      I'm making a hyperlink control which i obviously need to color but i found out that chil controls don't automaticly receive the WM_CTLCOLORSTATIC message so i thought i needed to do this with Message Reflection. I however don't have a clue how to do this except for Notify messages. Can somebody help me out?

      T Offline
      T Offline
      Thomas A Rieck
      wrote on last edited by
      #2

      Have you looked into handling the OCM_CTRLCOLORSTATIC message with reflection?

      T 1 Reply Last reply
      0
      • T Thomas A Rieck

        Have you looked into handling the OCM_CTRLCOLORSTATIC message with reflection?

        T Offline
        T Offline
        Tommy2k
        wrote on last edited by
        #3

        If I use this, how do I reflect the message from to parrent to the child?

        T 1 Reply Last reply
        0
        • T Tommy2k

          If I use this, how do I reflect the message from to parrent to the child?

          T Offline
          T Offline
          Thomas A Rieck
          wrote on last edited by
          #4

          I have used something like the following: In the parent's message map include REFLECT_NOTIFICATIONS() like: BEGIN_MSG_MAP(CMainFrame) REFLECT_NOTIFICATIONS() ... END_MSG_MSP() And in the child message map do something like: BEGIN_MSG_MAP(CChildWindow) MSG_OCM_NOTIFY(OnNotify) DEFAULT_REFLECTION_HANDLER() END_MSG_MAP() This has worked for me. The MSG_OCM_NOTIFY is from WTL enhanced message crackers in atlcrack.h. Good Luck, Tom Rieck

          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