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 CToolTipCtrl

CObject
   |
   +--CCmdTarget
         |
         +--CWnd
               |
               +--CToolTipCtrl

   in AFXCMN.H

class CToolTipCtrl
extends CWnd

CToolTipCtrl


Field Summary
protected CMapStringToPtr m_mapString
          
   
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
CToolTipCtrl()
          
virtual ~CToolTipCtrl()
          
 
Method Summary
 void Activate( BOOL bActivate )
          
 BOOL AddTool( CWnd* pWnd, UINT nIDText, LPCRECT lpRectTool = NULL, UINT nIDTool = 0 )
          
 BOOL AddTool( CWnd* pWnd, LPCTSTR lpszText = LPSTR_TEXTCALLBACK, LPCRECT lpRectTool = NULL, UINT nIDTool = 0 )
          
 BOOL Create( CWnd* pParentWnd, DWORD dwStyle = 0 )
          
 void DelTool( CWnd* pWnd, UINT nIDTool = 0 )
          
 virtual BOOL DestroyToolTipCtrl()
          
 void FillInToolInfo( TOOLINFO& ti, CWnd* pWnd, UINT nIDTool ) const
          
 int GetDelayTime( DWORD dwDuration ) const
          
 void GetMargin( LPRECT lprc ) const
          
 int GetMaxTipWidth() const
          
 void GetText( CString& str, CWnd* pWnd, UINT nIDTool = 0 ) const
          
 COLORREF GetTipBkColor() const
          
 COLORREF GetTipTextColor() const
          
 int GetToolCount() const
          
 BOOL GetToolInfo( CToolInfo& ToolInfo, CWnd* pWnd, UINT nIDTool = 0 ) const
          
 BOOL HitTest( CWnd* pWnd, CPoint pt, LPTOOLINFO lpToolInfo ) const
          
protected afx_msg LRESULT OnAddTool( WPARAM, LPARAM )
          
protected afx_msg LRESULT OnDisableModal( WPARAM, LPARAM )
          
protected afx_msg void OnEnable( BOOL bEnable )
          
protected afx_msg LRESULT OnWindowFromPoint( WPARAM, LPARAM )
          
 void Pop()
          
 void RelayEvent( LPMSG lpMsg )
          
 void SetDelayTime( DWORD dwDuration, int iTime )
          
 void SetDelayTime( UINT nDelay )
          
 void SetMargin( LPRECT lprc )
          
 int SetMaxTipWidth( int iWidth )
          
 void SetTipBkColor( COLORREF clr )
          
 void SetTipTextColor( COLORREF clr )
          
 void SetToolInfo( LPTOOLINFO lpToolInfo )
          
 void SetToolRect( CWnd* pWnd, UINT nIDTool, LPCRECT lpRect )
          
 void Update()
          
 void UpdateTipText( LPCTSTR lpszText, CWnd* pWnd, UINT nIDTool = 0 )
          
 void UpdateTipText( UINT nIDText, CWnd* pWnd, UINT nIDTool = 0 )
          
   
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
 

Field Detail

m_mapString

protected CMapStringToPtr m_mapString;


Constructor Detail

CToolTipCtrl

public CToolTipCtrl();

~CToolTipCtrl

public virtual ~CToolTipCtrl();


Method Detail

Activate

public void Activate( BOOL bActivate );

AddTool

public BOOL AddTool( CWnd* pWnd, UINT nIDText, LPCRECT lpRectTool = NULL, UINT nIDTool = 0 );

AddTool

public BOOL AddTool( CWnd* pWnd, LPCTSTR lpszText = LPSTR_TEXTCALLBACK, LPCRECT lpRectTool = NULL, UINT nIDTool = 0 );

Create

public BOOL Create( CWnd* pParentWnd, DWORD dwStyle = 0 );

DelTool

public void DelTool( CWnd* pWnd, UINT nIDTool = 0 );

DestroyToolTipCtrl

public virtual BOOL DestroyToolTipCtrl();

FillInToolInfo

public void FillInToolInfo( TOOLINFO& ti, CWnd* pWnd, UINT nIDTool ) const;

GetDelayTime

public int GetDelayTime( DWORD dwDuration ) const;

GetMargin

public void GetMargin( LPRECT lprc ) const;

GetMaxTipWidth

public int GetMaxTipWidth() const;

GetText

public void GetText( CString& str, CWnd* pWnd, UINT nIDTool = 0 ) const;

GetTipBkColor

public COLORREF GetTipBkColor() const;

GetTipTextColor

public COLORREF GetTipTextColor() const;

GetToolCount

public int GetToolCount() const;

GetToolInfo

public BOOL GetToolInfo( CToolInfo& ToolInfo, CWnd* pWnd, UINT nIDTool = 0 ) const;

HitTest

public BOOL HitTest( CWnd* pWnd, CPoint pt, LPTOOLINFO lpToolInfo ) const;

OnAddTool

protected afx_msg LRESULT OnAddTool( WPARAM, LPARAM );

OnDisableModal

protected afx_msg LRESULT OnDisableModal( WPARAM, LPARAM );

OnEnable

protected afx_msg void OnEnable( BOOL bEnable );

OnWindowFromPoint

protected afx_msg LRESULT OnWindowFromPoint( WPARAM, LPARAM );

Pop

public void Pop();

RelayEvent

public void RelayEvent( LPMSG lpMsg );

SetDelayTime

public void SetDelayTime( DWORD dwDuration, int iTime );

SetDelayTime

public void SetDelayTime( UINT nDelay );

SetMargin

public void SetMargin( LPRECT lprc );

SetMaxTipWidth

public int SetMaxTipWidth( int iWidth );

SetTipBkColor

public void SetTipBkColor( COLORREF clr );

SetTipTextColor

public void SetTipTextColor( COLORREF clr );

SetToolInfo

public void SetToolInfo( LPTOOLINFO lpToolInfo );

SetToolRect

public void SetToolRect( CWnd* pWnd, UINT nIDTool, LPCRECT lpRect );

Update

public void Update();

UpdateTipText

public void UpdateTipText( LPCTSTR lpszText, CWnd* pWnd, UINT nIDTool = 0 );

UpdateTipText

public void UpdateTipText( UINT nIDText, CWnd* pWnd, UINT nIDTool = 0 );

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