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. COM
  4. ATL PROP_DATA_ENTRY

ATL PROP_DATA_ENTRY

Scheduled Pinned Locked Moved COM
c++tutorialquestion
4 Posts 2 Posters 14 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.
  • L Offline
    L Offline
    Lakshmi Vyas
    wrote on last edited by
    #1

    How to add a custom color property entry in PROP_DATA_ENTRY macro - what should be the vt value?

    A 1 Reply Last reply
    0
    • L Lakshmi Vyas

      How to add a custom color property entry in PROP_DATA_ENTRY macro - what should be the vt value?

      A Offline
      A Offline
      Alex Gorev
      wrote on last edited by
      #2

      Hi, If it possible use the wizards to add the property and specify the OLE_COLOR as a data type. When a property is declared as OLE_COLOR, the Properties window will display a color-picker dialog that allows the user to select the color for the property visually, rather than having to remember the numeric equivalent. Internally it's treated as a Long. Regards, Alex Gorev Dundas Software.

      L 1 Reply Last reply
      0
      • A Alex Gorev

        Hi, If it possible use the wizards to add the property and specify the OLE_COLOR as a data type. When a property is declared as OLE_COLOR, the Properties window will display a color-picker dialog that allows the user to select the color for the property visually, rather than having to remember the numeric equivalent. Internally it's treated as a Long. Regards, Alex Gorev Dundas Software.

        L Offline
        L Offline
        Lakshmi Vyas
        wrote on last edited by
        #3

        Hi, Thanks for replying. The reason why I need the PROP_DATA_ENTRY is to persist the property. I have added properties using the wizard already. When I add an entry like... PROP_DATA_ENTRY("Start Color", m_clrStartColor,VT_UI4) the VB client gives invalid property when being persisted. Please clarify. Thanks & regards, V.Lakshmi Narasimhan

        A 1 Reply Last reply
        0
        • L Lakshmi Vyas

          Hi, Thanks for replying. The reason why I need the PROP_DATA_ENTRY is to persist the property. I have added properties using the wizard already. When I add an entry like... PROP_DATA_ENTRY("Start Color", m_clrStartColor,VT_UI4) the VB client gives invalid property when being persisted. Please clarify. Thanks & regards, V.Lakshmi Narasimhan

          A Offline
          A Offline
          Alex Gorev
          wrote on last edited by
          #4

          Hi, First of all if you have a Set/Get functions for the property and it's part of any property page it's better to use PROP_ENTRY macro. Even if you don't use the property page you can always set it to CLSID_NULL. BEGIN_PROP_MAP(...) PROP_ENTRY("StartColor", DISPID_START_COLOR, CLSID_NULL) END_PROP_MAP() The other thing I've noticed is that you use a space in the name of the property. Never use it in the name of the properties, it can cause all kind of problems. Regards, Alex Gorev, Dundas Software.

          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