CMNCTRLS

The CMNCTRLS sample demonstrates how to use the following common control MFC classes: CListCtrl, CTreeCtrl, CProgressCtrl, CSliderCtrl and CSpinButtonCtrl. It shows how to create the controls, and how to change them, using many of the different styles that are available.

Select a tab in the CMNCTRLS property sheet for a check box, radio button, or combo box. Then you can select various styles and views for the control from the property page displayed. Each one of the options changes the behavior and/or appearance of the control being displayed. For CListCtrl and CTreeCtrl, you will be able to see the different notification messages sent by the control as you experiment with it.

This sample demonstrates the following keywords:

CBitmap::LoadBitmap CSliderCtrl::SetRangeMax
CComboBox::AddString CSliderCtrl::SetRangeMin
CComboBox::ResetContent CSliderCtrl::SetSelection
CDialog::DoModal CSliderCtrl::SetTicFreq
CDialog::OnInitDialog CSpinButtonCtrl::Create
CEdit::LineLength CSpinButtonCtrl::GetBuddy
CEdit::LineIndex CSpinButtonCtrl::GetRange
CEdit::ReplaceSel CSpinButtonCtrl::SetBuddy
CEdit::SetSel CSpinButtonCtrl::SetRange
CGdiObject::DeleteObject CTreeCtrl::DeleteItem
CImageList::Add CTreeCtrl::GetImageList
CImageList::Create CTreeCtrl::GetChildItem
CImageList::DeleteImageList CTreeCtrl::GetParentItem
CImageList::DragEnter CTreeCtrl::InsertItem
CImageList::DragLeave CTreeCtrl::SetImageList
CImageList::DragMove CTreeCtrl::SetItem
CImageList::EndDrag CWinApp::LoadIcon
CListCtrl::GetItemText CWnd::DestroyWindow
CListCtrl::InsertColumn CWnd::GetDlgItem
CListCtrl::InsertItem CWnd::GetParent
CListCtrl::SetImageList CWnd::GetSafeHwnd
CListCtrl::SetItem CWnd::GetWindowRect
CListCtrl::SetItemPosition CWnd::GetWindowText
CListCtrl::SetItemText CWnd::Invalidate
CProgressCtrl::OffsetPos CWnd::SetIcon
CProgressCtrl::SetPos CWnd::SetWindowPos
CProgressCtrl::SetRange CWnd::SetWindowText
CProgressCtrl::SetStep CWnd::ScreenToClient
CProgressCtrl::StepIt CWnd::UpdateData
CPropertyPage::SetModified AfxGetApp
CPropertySheet::AddPage GetWindowLong
CSliderCtrl::Create MessageBeep
CSliderCtrl::ClearSel ReleaseCapture
CSliderCtrl::ClearTics _tcscpy
CSliderCtrl::SetLineSize _ttoi
CSliderCtrl::SetPageSize wsprintf
CSliderCtrl::SetRange

You can find the CMNCTRLS project files in the Wce\Samples\Mfc\CMNCTRLS directory.

To build the CMNCTRLS sample, follow the procedure described in Building the Sample Applications, selecting one or more of the following project configurations.