The Header Control


When the list view control is in the report it usually displays a header control to label the columns. Often times we need to get hold of the header control. This header control is a child window of the list view control and always has the ID 0.
CHeaderCtrl* pHeader =(CHeaderCtrl*)m_listctrl.GetDlgItem(0);
The header control exists even if the list view is not in the report mode. When the list view mode is other that the LVS_REPORT, the dimensions of the header control is zero.
 

Comments:



Comments

  • There are no comments yet. Be the first to comment!

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

Top White Papers and Webcasts

  • Today's agile organizations pose operations teams with a tremendous challenge: to deploy new releases to production immediately after development and testing is completed. To ensure that applications are deployed successfully, an automatic and transparent process is required. We refer to this process as Zero Touch Deployment™. This white paper reviews two approaches to Zero Touch Deployment--a script-based solution and a release automation platform. The article discusses how each can solve the key …

  • The hard facts on SaaS adoption in over 80,000 enterprises: Public vs. private companies Mid-market vs. large enterprise GoogleApps, Office365, Salesforce & more Why security is a growing concern Fill out the form to download the full cloud adoption report.

Most Popular Programming Stories

More for Developers

RSS Feeds