Adding Controls to listcontrol

Environment: VC++, list controls

To insert a control:

  1. Select Radio Button.
  2. Select SubItem Control index From [SubItem Index] ComboBox.
  3. Press Insert Control Button.

To add to control text:

  1. Select SubItem Control index From [SubItem Index] ComboBox.
  2. Press [Add Text ToControl] Button.

Attach Message [ Message like BN_CLICKED] + Message Handler [Function of   void * pFunction () type ]

m_NeuListCtrl.AttachEvent_HandlerForItemControl(
              0,BN_CLICKED,pFuncShowColorDialog);

I am setting Message BN_CLICKED and Message Handler pFuncShowColorDialog For Control at SubItem 0.

Clicking the button will display the Color dialog.

Downloads

Download demo project - 14 Kb
Download source code - 45 Kb


Comments

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 14, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Data protection has long been considered "overhead" by many organizations in the past, many chalking it up to an insurance policy or an extended warranty you may never use. The realities of today make data protection a must-have, as we live in a data driven society. The digital assets we create, share, and collaborate with others on must be managed and protected for many purposes. Check out this upcoming eSeminar and join eVault Chief Technology …

  • "Security" is the number one issue holding business leaders back from the cloud. But does the reality match the perception? Keeping data close to home, on premises, makes business and IT leaders feel inherently more secure. But the truth is, cloud solutions can offer companies real, tangible security advantages. Before you assume that on-site is the only way to keep data safe, it's worth taking a comprehensive approach to evaluating risks. Doing so can lead to big benefits.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds