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

IT Offers

Comments

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

Go Deeper

  • Implementing a new ERP system can be the answer to your prayers, or your worst nightmare. Stay aware of the pitfalls with this up-to-date …
  • When the economy is stable, a company's IT organization may view Finance as just one of many internal customers competing for attention. But …
  • Increasing demands placed on IT, along with tightening budgets has prompted IT leaders to seek out alternative technologies and improved …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds