home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CComboBox

CObject
   |
   +--CCmdTarget
         |
         +--CWnd
               |
               +--CComboBox

   in AFXWIN.H
Direct Known Subclasses:
CComboBoxEx, CFontComboBox, CSizeComboBox

class CComboBox
extends CWnd


 
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
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
CComboBox()
          
virtual ~CComboBox()
          
 
Method Summary
 int AddString( LPCTSTR lpszString )
          
 void Clear()
          
 virtual int CompareItem( LPCOMPAREITEMSTRUCT lpCompareItemStruct )
          
 void Copy()
          
 BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID )
          
 void Cut()
          
 virtual void DeleteItem( LPDELETEITEMSTRUCT lpDeleteItemStruct )
          
 int DeleteString( UINT nIndex )
          
 int Dir( UINT attr, LPCTSTR lpszWildCard )
          
 virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct )
          
 int FindString( int nStartAfter, LPCTSTR lpszString ) const
          
 int FindStringExact( int nIndexStart, LPCTSTR lpszFind ) const
          
 int GetCount() const
          
 int GetCurSel() const
          
 void GetDroppedControlRect( LPRECT lprect ) const
          
 BOOL GetDroppedState() const
          
 int GetDroppedWidth() const
          
 DWORD GetEditSel() const
          
 BOOL GetExtendedUI() const
          
 UINT GetHorizontalExtent() const
          
 DWORD GetItemData( int nIndex ) const
          
 void* GetItemDataPtr( int nIndex ) const
          
 int GetItemHeight( int nIndex ) const
          
 int GetLBText( int nIndex, LPTSTR lpszText ) const
          
 void GetLBText( int nIndex, CString& rString ) const
          
 int GetLBTextLen( int nIndex ) const
          
 LCID GetLocale() const
          
 int GetTopIndex() const
          
 int InitStorage( int nItems, UINT nBytes )
          
 int InsertString( int nIndex, LPCTSTR lpszString )
          
 BOOL LimitText( int nMaxChars )
          
 virtual void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct )
          
protected virtual BOOL OnChildNotify( UINT, WPARAM, LPARAM, LRESULT* )
          
 void Paste()
          
 void ResetContent()
          
 int SelectString( int nStartAfter, LPCTSTR lpszString )
          
 int SetCurSel( int nSelect )
          
 int SetDroppedWidth( UINT nWidth )
          
 BOOL SetEditSel( int nStartChar, int nEndChar )
          
 int SetExtendedUI( BOOL bExtended = TRUE )
          
 void SetHorizontalExtent( UINT nExtent )
          
 int SetItemData( int nIndex, DWORD dwItemData )
          
 int SetItemDataPtr( int nIndex, void* pData )
          
 int SetItemHeight( int nIndex, UINT cyItemHeight )
          
 LCID SetLocale( LCID nNewLocale )
          
 int SetTopIndex( int nIndex )
          
 void ShowDropDown( BOOL bShowIt = TRUE )
          
   
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
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Constructor Detail

CComboBox

public CComboBox();

~CComboBox

public virtual ~CComboBox();


Method Detail

AddString

public int AddString( LPCTSTR lpszString );

Clear

public void Clear();

CompareItem

public virtual int CompareItem( LPCOMPAREITEMSTRUCT lpCompareItemStruct );

Copy

public void Copy();

Create

public BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );

Cut

public void Cut();

DeleteItem

public virtual void DeleteItem( LPDELETEITEMSTRUCT lpDeleteItemStruct );

DeleteString

public int DeleteString( UINT nIndex );

Dir

public int Dir( UINT attr, LPCTSTR lpszWildCard );

DrawItem

public virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );

FindString

public int FindString( int nStartAfter, LPCTSTR lpszString ) const;

FindStringExact

public int FindStringExact( int nIndexStart, LPCTSTR lpszFind ) const;

GetCount

public int GetCount() const;

GetCurSel

public int GetCurSel() const;

GetDroppedControlRect

public void GetDroppedControlRect( LPRECT lprect ) const;

GetDroppedState

public BOOL GetDroppedState() const;

GetDroppedWidth

public int GetDroppedWidth() const;

GetEditSel

public DWORD GetEditSel() const;

GetExtendedUI

public BOOL GetExtendedUI() const;

GetHorizontalExtent

public UINT GetHorizontalExtent() const;

GetItemData

public DWORD GetItemData( int nIndex ) const;

GetItemDataPtr

public void* GetItemDataPtr( int nIndex ) const;

GetItemHeight

public int GetItemHeight( int nIndex ) const;

GetLBText

public int GetLBText( int nIndex, LPTSTR lpszText ) const;

GetLBText

public void GetLBText( int nIndex, CString& rString ) const;

GetLBTextLen

public int GetLBTextLen( int nIndex ) const;

GetLocale

public LCID GetLocale() const;

GetTopIndex

public int GetTopIndex() const;

InitStorage

public int InitStorage( int nItems, UINT nBytes );

InsertString

public int InsertString( int nIndex, LPCTSTR lpszString );

LimitText

public BOOL LimitText( int nMaxChars );

MeasureItem

public virtual void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct );

OnChildNotify

protected virtual BOOL OnChildNotify( UINT, WPARAM, LPARAM, LRESULT* );

Paste

public void Paste();

ResetContent

public void ResetContent();

SelectString

public int SelectString( int nStartAfter, LPCTSTR lpszString );

SetCurSel

public int SetCurSel( int nSelect );

SetDroppedWidth

public int SetDroppedWidth( UINT nWidth );

SetEditSel

public BOOL SetEditSel( int nStartChar, int nEndChar );

SetExtendedUI

public int SetExtendedUI( BOOL bExtended = TRUE );

SetHorizontalExtent

public void SetHorizontalExtent( UINT nExtent );

SetItemData

public int SetItemData( int nIndex, DWORD dwItemData );

SetItemDataPtr

public int SetItemDataPtr( int nIndex, void* pData );

SetItemHeight

public int SetItemHeight( int nIndex, UINT cyItemHeight );

SetLocale

public LCID SetLocale( LCID nNewLocale );

SetTopIndex

public int SetTopIndex( int nIndex );

ShowDropDown

public void ShowDropDown( BOOL bShowIt = TRUE );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD