MFC
Class CCheckListBox
CObject
|
+--CCmdTarget
|
+--CWnd
|
+--CListBox
|
+--CCheckListBox
in AFXWIN.H
- class CCheckListBox
- extends CListBox
| Fields inherited from class CWnd |
m_hWnd, wndTop, wndBottom, wndTopMost, wndNoTopMost, m_hWndOwner, m_nFlags, m_pfnSuper, m_nMsgDragList, m_nModalResult, m_pDropTarget, m_pCtrlCont, m_pCtrlSite, messageMap |
| Fields inherited from class CCmdTarget |
messageMap, commandMap, dispatchMap, connectionMap, interfaceMap, eventsinkMap, m_dwRef, m_pOuterUnknown, m_xInnerUnknown, m_xDispatch, m_bResultExpected, m_xConnPtContainer |
|
Method Summary |
protected int |
CalcMinimumItemHeight()
|
protected int |
CheckFromPoint( CPoint point, BOOL& bInCheck )
|
BOOL |
Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID )
|
virtual void |
DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct )
|
void |
Enable( int nIndex, BOOL bEnabled = TRUE )
|
int |
GetCheck( int nIndex )
|
UINT |
GetCheckStyle()
|
protected virtual const AFX_MSGMAP* |
GetMessageMap() const
|
protected void |
InvalidateCheck( int nIndex )
|
protected void |
InvalidateItem( int nIndex )
|
BOOL |
IsEnabled( int nIndex )
|
virtual void |
MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct )
|
protected virtual BOOL |
OnChildNotify( UINT, WPARAM, LPARAM, LRESULT* )
|
protected int |
OnCreate( LPCREATESTRUCT lpCreateStruct )
|
virtual CRect |
OnGetCheckPosition( CRect rectItem, CRect rectCheckBox )
|
protected void |
OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags )
|
protected LRESULT |
OnLBAddString( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBFindString( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBFindStringExact( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBGetItemData( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBGetText( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBInsertString( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBSelectString( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBSetItemData( WPARAM wParam, LPARAM lParam )
|
protected LRESULT |
OnLBSetItemHeight( WPARAM wParam, LPARAM lParam )
|
protected void |
OnLButtonDblClk( UINT nFlags, CPoint point )
|
protected void |
OnLButtonDown( UINT nFlags, CPoint point )
|
protected LRESULT |
OnSetFont( WPARAM wParam, LPARAM lParam )
|
protected int |
PreCompareItem( LPCOMPAREITEMSTRUCT lpCompareItemStruct )
|
protected void |
PreDeleteItem( LPDELETEITEMSTRUCT lpDeleteItemStruct )
|
protected void |
PreDrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct )
|
protected void |
PreMeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct )
|
void |
SetCheck( int nIndex, int nCheck )
|
void |
SetCheckStyle( UINT nStyle )
|
protected void |
SetSelectionCheck( int nCheck )
|
| Methods inherited from class CListBox |
Create, GetCount, GetHorizontalExtent, SetHorizontalExtent, GetTopIndex, SetTopIndex, GetLocale, SetLocale, InitStorage, ItemFromPoint, GetCurSel, SetCurSel, GetSel, SetSel, GetSelCount, GetSelItems, SetAnchorIndex, GetAnchorIndex, GetItemData, SetItemData, GetItemDataPtr, SetItemDataPtr, GetItemRect, GetText, GetText, GetTextLen, SetColumnWidth, SetTabStops, SetTabStops, SetTabStops, SetItemHeight, GetItemHeight, FindStringExact, GetCaretIndex, SetCaretIndex, AddString, DeleteString, InsertString, ResetContent, Dir, FindString, SelectString, SelItemRange, DrawItem, MeasureItem, CompareItem, DeleteItem, VKeyToItem, CharToItem, OnChildNotify |
| Methods inherited from class CWnd |
GetCurrentMessage, HWND, operator==, operator!=, GetSafeHwnd, GetStyle, GetExStyle, ModifyStyle, ModifyStyleEx, GetOwner, SetOwner, FromHandle, FromHandlePermanent, DeleteTempMap, Attach, Detach, PreSubclassWindow, SubclassWindow, SubclassDlgItem, UnsubclassWindow, ExecuteDlgInit, ExecuteDlgInit, Create, CreateEx, CreateEx, CreateControl, CreateControl, CreateControl, GetControlUnknown, DestroyWindow, PreCreateWindow, CalcWindowRect, GetDlgCtrlID, SetDlgCtrlID, GetDlgItem, GetDlgItem, GetDescendantWindow, SendMessageToDescendants, GetParentFrame, GetTopLevelParent, GetTopLevelOwner, GetParentOwner, GetTopLevelFrame, GetSafeOwner, SendMessage, PostMessage, SendNotifyMessage, SendChildNotifyLastMsg, IsDialogMessage, SetWindowText, GetWindowText, GetWindowText, GetWindowTextLength, SetFont, GetFont, GetMenu, SetMenu, DrawMenuBar, GetSystemMenu, HiliteMenuItem, IsIconic, IsZoomed, MoveWindow, MoveWindow, SetWindowRgn, GetWindowRgn, SetWindowPos, ArrangeIconicWindows, BringWindowToTop, GetWindowRect, GetClientRect, GetWindowPlacement, SetWindowPlacement, ClientToScreen, ClientToScreen, ScreenToClient, ScreenToClient, MapWindowPoints, MapWindowPoints, BeginPaint, EndPaint, GetDC, GetWindowDC, ReleaseDC, Print, PrintClient, UpdateWindow, SetRedraw, GetUpdateRect, GetUpdateRgn, Invalidate, InvalidateRect, InvalidateRgn, ValidateRect, ValidateRgn, ShowWindow, IsWindowVisible, ShowOwnedPopups, GetDCEx, LockWindowUpdate, UnlockWindowUpdate, RedrawWindow, EnableScrollBar, SetTimer, KillTimer, EnableToolTips, EnableTrackingToolTips, CancelToolTips, FilterToolTipMessage, OnToolHitTest, IsWindowEnabled, EnableWindow, GetActiveWindow, SetActiveWindow, SetForegroundWindow, GetForegroundWindow, GetCapture, SetCapture, GetFocus, SetFocus, GetDesktopWindow, CloseWindow, OpenIcon, CheckDlgButton, CheckRadioButton, GetCheckedRadioButton, DlgDirList, DlgDirListComboBox, DlgDirSelect, DlgDirSelectComboBox, GetDlgItemInt, GetDlgItemText, GetDlgItemText, GetNextDlgGroupItem, GetNextDlgTabItem, IsDlgButtonChecked, SendDlgItemMessage, SetDlgItemInt, SetDlgItemText, GetScrollPos, GetScrollRange, ScrollWindow, SetScrollPos, SetScrollRange, ShowScrollBar, EnableScrollBarCtrl, GetScrollBarCtrl, ScrollWindowEx, SetScrollInfo, GetScrollInfo, GetScrollLimit, ChildWindowFromPoint, ChildWindowFromPoint, FindWindow, GetNextWindow, GetTopWindow, GetWindow, GetLastActivePopup, IsChild, GetParent, SetParent, WindowFromPoint, FlashWindow, MessageBox, ChangeClipboardChain, SetClipboardViewer, OpenClipboard, GetClipboardOwner, GetClipboardViewer, GetOpenClipboardWindow, CreateCaret, CreateSolidCaret, CreateGrayCaret, GetCaretPos, SetCaretPos, HideCaret, ShowCaret, DragAcceptFiles, SetIcon, GetIcon, SetWindowContextHelpId, GetWindowContextHelpId, UpdateData, OnHelp, OnHelpIndex, OnHelpFinder, OnHelpUsing, WinHelp, RepositionBars, UpdateDialogControls, CenterWindow, RunModalLoop, ContinueModal, EndModalLoop, InvokeHelper, SetProperty, GetProperty, GetDSCCursor, BindDefaultProperty, BindProperty, OnCommand, OnNotify, OnActivate, OnActivateApp, OnActivateTopLevel, OnCancelMode, OnChildActivate, OnClose, OnContextMenu, OnCopyData, OnCreate, OnCtlColor, OnDestroy, OnEnable, OnEndSession, OnEnterIdle, OnEraseBkgnd, OnGetMinMaxInfo, OnHelpInfo, OnIconEraseBkgnd, OnKillFocus, OnMenuChar, OnMenuSelect, OnMove, OnPaint, OnParentNotify, OnQueryDragIcon, OnQueryEndSession, OnQueryNewPalette, OnQueryOpen, OnSetFocus, OnShowWindow, OnSize, OnTCard, OnWindowPosChanging, OnWindowPosChanged, OnNcActivate, OnNcCalcSize, OnNcCreate, OnNcDestroy, OnNcHitTest, OnNcLButtonDblClk, OnNcLButtonDown, OnNcLButtonUp, OnNcMButtonDblClk, OnNcMButtonDown, OnNcMButtonUp, OnNcMouseMove, OnNcPaint, OnNcRButtonDblClk, OnNcRButtonDown, OnNcRButtonUp, OnDropFiles, OnPaletteIsChanging, OnSysChar, OnSysCommand, OnSysDeadChar, OnSysKeyDown, OnSysKeyUp, OnCompacting, OnDevModeChange, OnFontChange, OnPaletteChanged, OnSpoolerStatus, OnSysColorChange, OnTimeChange, OnSettingChange, OnWinIniChange, OnChar, OnDeadChar, OnHScroll, OnVScroll, OnKeyDown, OnKeyUp, OnLButtonDblClk, OnLButtonDown, OnLButtonUp, OnMButtonDblClk, OnMButtonDown, OnMButtonUp, OnMouseActivate, OnMouseMove, OnMouseWheel, OnRegisteredMouseWheel, OnRButtonDblClk, OnRButtonDown, OnRButtonUp, OnSetCursor, OnTimer, OnInitMenu, OnInitMenuPopup, OnAskCbFormatName, OnChangeCbChain, OnDestroyClipboard, OnDrawClipboard, OnHScrollClipboard, OnPaintClipboard, OnRenderAllFormats, OnRenderFormat, OnSizeClipboard, OnVScrollClipboard, OnCompareItem, OnDeleteItem, OnDrawItem, OnGetDlgCode, OnMeasureItem, OnCharToItem, OnVKeyToItem, OnMDIActivate, OnEnterMenuLoop, OnExitMenuLoop, OnStyleChanged, OnStyleChanging, OnSizing, OnMoving, OnCaptureChanged, OnDeviceChange, GetSuperWndProcAddr, DoDataExchange, BeginModalState, EndModalState, PreTranslateMessage, OnAmbientProperty, WindowProc, OnWndMsg, Default, DefWindowProc, PostNcDestroy, OnChildNotify, ReflectChildNotify, ReflectLastMsg, CheckAutoCenter, SubclassCtl3d, SubclassDlg3d, GrayCtlColor, OnGrayCtlColor, HandleFloatingSysCommand, IsTopParentActive, ActivateTopParent, WalkPreTranslateTree, GetDescendantWindow, SendMessageToDescendants, IsFrameWnd, OnFinalRelease, PreTranslateInput, ModifyStyle, ModifyStyleEx, _FilterToolTipMessage, _EnableToolTips, GetSafeOwner_, CreateDlg, CreateDlgIndirect, CreateDlgIndirect, InitControlContainer, SetOccDialogInfo, AttachControlSite, AttachControlSite, OnNTCtlColor, OnQuery3dControls, OnDisplayChange, OnDragList, GetMessageMap |
| Methods inherited from class CCmdTarget |
GetIDispatch, FromIDispatch, IsResultExpected, EnableAutomation, EnableConnections, BeginWaitCursor, EndWaitCursor, RestoreWaitCursor, EnumOleVerbs, DoOleVerb, OnCmdMsg, OnFinalRelease, IsInvokeAllowed, EnableTypeLib, GetTypeInfoOfGuid, GetDispatchIID, GetTypeInfoCount, GetTypeLibCache, GetTypeLib, GetNotSupported, SetNotSupported, GetRoutingView, GetRoutingFrame, GetRoutingView_, GetRoutingFrame_, GetMessageMap, GetCommandMap, GetDispatchMap, GetConnectionMap, GetInterfaceMap, GetEventSinkMap, EnableAggregation, ExternalDisconnect, GetControllingUnknown, InternalQueryInterface, InternalAddRef, InternalRelease, ExternalQueryInterface, ExternalAddRef, ExternalRelease, GetInterface, QueryAggregates, OnCreateAggregates, GetInterfaceHook, GetStandardProp, SetStandardProp, GetEntryCount, GetDispEntry, MemberIDFromName, GetStackSize, PushStackArgs, CallMemberFunc, OnEvent, GetEventSinkEntry, GetExtraConnectionPoints, GetConnectionHook |
m_cyText
protected int m_cyText;
m_nStyle
protected UINT m_nStyle;
messageMap
protected static AFX_CORE_DATA const AFX_MSGMAP messageMap;
CCheckListBox
public CCheckListBox();
CalcMinimumItemHeight
protected int CalcMinimumItemHeight();
CheckFromPoint
protected int CheckFromPoint( CPoint point, BOOL& bInCheck );
Create
public BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
DrawItem
public virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
Enable
public void Enable( int nIndex, BOOL bEnabled = TRUE );
GetCheck
public int GetCheck( int nIndex );
GetCheckStyle
public UINT GetCheckStyle();
GetMessageMap
protected virtual const AFX_MSGMAP* GetMessageMap() const;
InvalidateCheck
protected void InvalidateCheck( int nIndex );
InvalidateItem
protected void InvalidateItem( int nIndex );
IsEnabled
public BOOL IsEnabled( int nIndex );
MeasureItem
public virtual void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct );
OnChildNotify
protected virtual BOOL OnChildNotify( UINT, WPARAM, LPARAM, LRESULT* );
OnCreate
protected int OnCreate( LPCREATESTRUCT lpCreateStruct );
OnGetCheckPosition
public virtual CRect OnGetCheckPosition( CRect rectItem, CRect rectCheckBox );
OnKeyDown
protected void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );
OnLBAddString
protected LRESULT OnLBAddString( WPARAM wParam, LPARAM lParam );
OnLBFindString
protected LRESULT OnLBFindString( WPARAM wParam, LPARAM lParam );
OnLBFindStringExact
protected LRESULT OnLBFindStringExact( WPARAM wParam, LPARAM lParam );
OnLBGetItemData
protected LRESULT OnLBGetItemData( WPARAM wParam, LPARAM lParam );
OnLBGetText
protected LRESULT OnLBGetText( WPARAM wParam, LPARAM lParam );
OnLBInsertString
protected LRESULT OnLBInsertString( WPARAM wParam, LPARAM lParam );
OnLBSelectString
protected LRESULT OnLBSelectString( WPARAM wParam, LPARAM lParam );
OnLBSetItemData
protected LRESULT OnLBSetItemData( WPARAM wParam, LPARAM lParam );
OnLBSetItemHeight
protected LRESULT OnLBSetItemHeight( WPARAM wParam, LPARAM lParam );
OnLButtonDblClk
protected void OnLButtonDblClk( UINT nFlags, CPoint point );
OnLButtonDown
protected void OnLButtonDown( UINT nFlags, CPoint point );
OnSetFont
protected LRESULT OnSetFont( WPARAM wParam, LPARAM lParam );
PreCompareItem
protected int PreCompareItem( LPCOMPAREITEMSTRUCT lpCompareItemStruct );
PreDeleteItem
protected void PreDeleteItem( LPDELETEITEMSTRUCT lpDeleteItemStruct );
PreDrawItem
protected void PreDrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
PreMeasureItem
protected void PreMeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct );
SetCheck
public void SetCheck( int nIndex, int nCheck );
SetCheckStyle
public void SetCheckStyle( UINT nStyle );
SetSelectionCheck
protected void SetSelectionCheck( int nCheck );