CHeaderCtrl
Steve Dunn -- stevedunn@dial.pipex.com Sunday, January 05, 1997 Environment: VC++ 4.2b, NT 4.0 I'm looking for a way to get at/send messages to the CHeaderCtrl from a CListCtrl in report view. I basically need to set the 'button' style on the column headers, and to also set a bitmap indicating which direction the column is being sorted (ala Exchange Client). ////////////////////////////////////////////////////////// I am a realistic optimist - that's why I appear to be slightly pessimistic
Amir Shoval -- amirs@ncc.co.il Monday, January 06, 1997 >---------- >From: Steve Dunn[SMTP:stevedunn@dial.pipex.com] >Sent: =E9=E5=ED =F8=E0=F9=E5=EF 05 =E9=F0=E5=E0=F8 1997 21:25 >To: mfc-l@netcom.com >Subject: CHeaderCtrl > >Environment: VC++ 4.2b, NT 4.0 > >I'm looking for a way to get at/send messages to the CHeaderCtrl from a >CListCtrl in report view. A few weeks ago this was discussed in the list - how to gain access to the CHeaderCtrl of a CListCtrl. You can try this: CHeaderCtrl *head =3D (CHeaderCtrl*) m_yourListCtrl->GetDlgItem(0); There were more suggestions on the list. U can look in the archive. >I basically need to set the 'button' style on the column headers, and = to >also set a bitmap indicating which direction the column is being sorted >(ala Exchange Client).=20 > >////////////////////////////////////////////////////////// >I am a realistic optimist -=20 >that's why I appear to be slightly pessimistic ----------------------------------------------- Amir Shoval N.C.C. Israel amirs@ncc.co.il -----------------------------------------------
Mario Contestabile -- Mario_Contestabile.UOS__MTL@UOSMTL2.universal.com Monday, January 06, 1997 CHeaderCtrl* pHeadCtrl = (CHeaderCtrl*)m_ListCtrl.GetDlgItem(0); pHeadCtrl->SetItem(...); mcontest@universal.com ===== Snip ========== I'm looking for a way to get at/send messages to the CHeaderCtrl from a CListCtrl in report view. I basically need to set the 'button' style on the column headers, and to also set a bitmap indicating which direction the column is being sorted
| Вернуться в корень Архива |