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

  • Java developers know that testing code changes can be a huge pain, and waiting for an application to redeploy after a code fix can take an eternity. Wouldn't it be great if you could see your code changes immediately, fine-tune, debug, explore and deploy code without waiting for ages? In this white paper, find out how that's possible with a Java plugin that drastically changes the way you develop, test and run Java applications. Discover the advantages of this plugin, and the changes you can expect to see …

  • Specialization and efficiency are always in need. Whether it's replacing an aging roof, getting a haircut, or tuning up a car, most seek the assistance of trusted experts. The same is true in the business world, where an increasing number of companies are seeking the help of others to administer their IT systems and services. This special edition of Unleashing IT highlights a new breed of IT caretaker -- Cisco Powered service providers -- and the business advantages and operational efficiencies they …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds