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

  • Today's competitive marketplace requires the organization to frequently release and deploy applications at the pace of user demands, with reduced cost, risk, and increased quality. This book defines the basics of application release and deployment, and provides best practices for implementation with resources for a deeper dive. Inside you will find: The business and technical drivers behind automated application release and deployment. Evaluation guides for application release and deployment solutions. …

  • When it comes to desktops – physical or virtual – it's all about the applications. Cloud-hosted virtual desktops are growing fast because you get local data center-class security and 24x7 access with the complete personalization and flexibility of your own desktop. Organizations make five common mistakes when it comes to planning and implementing their application management strategy. This eBook tells you what they are and how to avoid them, and offers real-life case studies on customers who didn't …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds