![](https://csdnimg.cn/release/download_crawler_static/4149093/bg4.jpg)
ShowCaret Shows the caret on the display at the caret’s
current position. Once shown, the caret begins
flashing automatically.
CheckDlgButton Places a check mark next to or removes a
check mark from a button control.
CheckRadioButton Checks the specified radio button and removes
the check mark from all other radio buttons in
the specified group of buttons.
GetCheckedRadioB
utton
Returns the ID of the currently checked radio
button in a group of buttons.
DlgDirList Fills a list box with a file or directory listing.
DlgDirListComboB
ox
Fills the list box of a combo box with a file or
directory listing.
DlgDirSelect Retrieves the current selection from a list box.
DlgDirSelectCombo
Box
Retrieves the current selection from the list box
of a combo box.
GetDlgItemInt Translates the text of a control in the given
dialog box to an integer value.
GetDlgItemText Retrieves the caption or text associated with a
control.
GetNextDlgGroupIt
em
Searches for the next (or previous) control
within a group of controls.
GetNextDlgTabItem Retrieves the first control with the
WS_TABSTOP style that follows (or
precedes) the specified control.
IsDlgButtonCh ecke
d
Determines whether a button control is
checked.
IsDialogMessage Determines whether the given message is
intended for the modeless dialog box and, if so,
processes it.
SendDlgItemMessa
ge
Sends a message to the specified control.
SetDlgItemInt Sets the text of a control to the string that
represents an integer value.
SetDlgItemText Sets the caption or text of a control in the
specified dialog box.
SubclassDlgItem Attaches a Windows control to a CWnd object
and makes it route messages through the
CWnd’s message map.
ExecuteDlgInit Initiates a dialog resource.
RunModalLoop Retrieves, translates, or dispatches messages
for a window that is in modal status.
ContinueModal Continues a window’s modal status.
EndModalLoop Ends a window’s modal status.
BindDefaultPropert
y
Binds the calling object’s default simple bound
property, as marked in the type library, to a
cursor associated with a data-source control.
BindProperty Binds a cursour-bound property on a data-
bound control to a data-source control and
registers that relationship with the MFC
binding manager.
GetDSCCursor Retrieves a pointer to the underlying cursor
that is defined by the DataSource, UserName,
Password, and SQL properties of a data-source
control.
GetMenu Retrieves a pointer to the specified menu.
SetMenu Sets the menu to the specified menu.
DrawMenuBar Redraws the menu bar.
GetSystemMenu Allows the application to access the Control
menu for copying and modification.
HiliteMenuItem Highlights or removes the highlighting from a
top-level (menu-bar) menu item.
EnableToolTips Enables the tooltip control.
CancelToolTips Disables the tooltip control.
FilterToolTipMessa
ge
Retrieves the title or text associated with a
control in a dialog box.
OnToolHitTest Detemines whether a point is in the bounding
rectangle of the specified tool and retrieves
information about the tool.
SetTimer Installs a system timer that sends a
WM_TIMER message when triggered.
KillTimer Kills a system timer.
FlashWindow Flashes the window once.
MessageBox Creates and displays a window that contains an
application-supplied message and caption.
GetCurrentMessage Returns a pointer to the message this window is
currently processing. Should only be called
when in an OnMessage message-handler
member function.
Default Calls the default window procedure, which
provides default processing for any window
messages that an application does not process.
PreTranslateMessag
e
Used by CWinApp to filter window messages
before they are dispatched to the
TranslateMessage and DispatchMessage
Windows functions.
SendMessage Sends a message to the CWnd object and does
not return until it has processed the message.
PostMessage Places a message in the application queue, then
returns without waiting for the window to
process the message.
SendNotifyMessage Sends the sp ecified message to the window and
returns as soon as possible, depending on
whether the calling thread created the window.
ChangeClipboardCh
ain
Removes CWnd from the chain of Clipboard
viewers.
SetClipboardViewer Adds CWnd to the chain of windows that are
notified whenever the contents of the Clipboard
are changed.
OpenClipboard Opens the Clipboard. Other applications will
not be able to modify the Clipboard until the
Windows CloseClipboard function is called.
GetClipboardOwner Retrieves a pointer to the current owner of the
Clipboard.
GetOpenClipboard
Window
Retrieves a pointer to the window that
currently has the Clipboard open.
GetClipboardViewe
r
Retrieves a pointer to the first window in the
chain of Clipboard viewers.
SetProperty Sets an OLE control property.
OnAmbientProperty Implement ambient property values.
GetControlUnknow
n
Retrieves a pointer to an unknown OLE
control.
GetProperty Retrieves an OLE control property.
InvokeHelper Invokes an OLE control method or property.
WindowProc Provides a window procedure for a CWnd.
The default dispatches messages through the
message map.
DefWindowProc Calls the default window procedure, which
provides default processing for any window
messages that an application does not process.
PostNcDestroy This virtual function is called by the default
OnNcDestroy function after the window has
been destroyed.
OnNotify Called by the framework to inform a parent
window an event has occurred in one of its
controls or that the control needs information.
OnChildNotify Called by a parent window to give a notifying
control a chance to respond to a control
notification.
DoDataExchange For dialog data exchange and validation.
Called by UpdateData.
OnInitMenu Called when a menu is about to become active.
OnInitMenuPopup Called when a pop-up menu is about to become
active.
OnSysChar Called when a keystroke translates to a system
character.
OnSysCommand Called when the user selects a command from
the Control menu, or when the user selects the
Maximize or Minimize button.
OnSysDeadChar Called when a keystroke translates to a system
dead character (such as accent characters).
OnSysKeyDown Called when the user holds down the ALT key
and then presses another key.
OnSysKeyUp Called when the user releases a key that was
pressed while the ALT key was held down.
OnCompacting Called when Windows detects that system
memory is low.
OnDevModeChange Called for all top-level windows when the user
changes device-mode settings.
OnFontChange Called when the pool of font resources
changes.
OnPaletteIsChangin
g
Informs other applications when an application
is going to realize its logical palette.
OnPaletteChanged Called to allow windows that use a color
palette to realize their logical palettes and
update their client areas.
OnSysColorChange Called for all top-level windows when a
change is made in the system color setting.
OnWindowPosChan
ging
Called when the size, position, or Z-order is
about to change as a result of a call to
SetWindowPos or another window-
management function.
OnWindowPosChan
ged
Called when the size, position, or Z-order has
changed as a result of a call to SetWindowPos
or another window-management function.
OnDropFiles Called when the user releases the left mouse
button over a window that has registered itself
as the recipient of dropped files.
OnSpoolerStatus Called from Print Manager whenever a job is
added to or removed from the Print Manager
queue.
OnTimeChange Called for all top-level windows after the
system time changes.
OnWinIniChange Called for all top-level windows after the
Windows initialization file, WIN.INI, is
changed.
OnCommand Called when the user selects a command.
OnActivate Called when CWnd is being activated or
deactivated.
OnActivateApp Called when the application is about to be
activated or deactivated.
OnCancelMode Called to allow CWnd to cancel any internal
modes, such as mouse capture.