没有合适的资源?快使用搜索试试~ 我知道了~
Microsoft Foundation Classes (MFC) Quick Reference
4星 · 超过85%的资源 需积分: 13 109 下载量 167 浏览量
2007-08-14
14:26:33
上传
评论
收藏 166KB PDF 举报
温馨提示
试读
19页
Microsoft Foundation Classes (MFC) Quick Reference
资源推荐
资源详情
资源评论
Microsoft Foundation Class (MFC)
Quick Reference
Author: Jialong He
Email: Jialong_he@bigfoot.com
http://www.bigfoot.com/~jialong_he
CObject
CObject Default constructor.
operator new Special new operator.
operator delete Special delete operator.
operator = Assignment operator.
AssertValid Validates this object’s integrity.
Dump Produces a diagnostic dump of this object.
IsSerializable Tests to see whether this object can be
serialized.
Serialize Loads or stores an object from/to an archive.
GetRuntimeClass Returns the CRuntimeClass structure
corresponding to this object’s class.
IsKindOf Tests this object’s relationship to a given class.
CWinApp
m_pszAppName Specifies the name of the application.
m_hInstance Identifies the current instance of the
application.
m_hPrevInstance Set to NULL in a 32-bit application.
m_lpCmdLine Points to a null-terminated string that specifies
the command line for the application.
m_nCmdShow Specifies how the window is to be shown
initially.
m_bHelpMode Indicates if the user is in Help context mode
(typically invoked with SHIFT+F1).
m_pActiveWnd Pointer to the main window of the container
application when an OLE server is in-place
active.
m_pszExeName The module name of the application.
m_pszHelpFilePath The path to the application’s Help file.
m_pszProfileName The application’s .INI filename.
m_pszRegistryKey Used to determine the full registry key for
storing application profile settings.
CWinApp Constructs a CWinApp object.
LoadCursor Loads a cursor resource.
LoadStandardCurso
r
Loads a Windows predefined cursor that the
IDC_ constants specify in WINDOWS.H.
LoadOEMCursor Loads a Windows OEM predefined cursor that
the OCR_ constants specify in WINDOWS.H.
LoadIcon Loads an icon resource.
LoadStandardIcon Loads a Windows predefined icon that the
IDI_ constants specify in WINDOWS.H.
LoadOEMIcon Loads a Windows OEM predefined icon that
the OIC_ constants specify in WINDOWS.H.
RunAutomated Tests the application’s command line for the
/Automation option. Obsolete. Use the value
in CCommandLineInfo::m_bRunEmbedded
after calling ParseCommandLine. instead.
RunEmbedded Tests the application’s command line for the
/Embedding option. Obsolete. Use the value
in CCommandLineInfo::m_bRunEmbedded
after calling ParseCommandLine. instead.
ParseCommandLine Parses individual parameters and flags in the
command line.
ProcessShellComma
nd
Handles command-line arguments and flags.
GetProfileInt Retrieves an integer from an entry in the
application’s .INI file.
WriteProfileInt Writes an integer to an entry in the
application’s .INI file.
GetProfileString Retrieves a string from an entry in the
application’s .INI file.
WriteProfileString Writes a string to an entry in the application’s
.INI file.
AddDocTemplate Adds a document template to the application’s
list of available document templates.
GetFirstDocTemplat
ePosition
Retrieves the position of the first document
template.
GetNextDocTempla
te
Retrieves the position of a document template.
Can be used recursively.
OpenDocumentFile Called by the framework to open a document
from a file.
AddToRecentFileLi
st
Adds a filename to the most recently used
(MRU) file list.
SelectPrinter Selects a printer previously indicated by a user
through a print dialog box.
CreatePrinterDC Creates a printer device context.
GetPrinterDeviceDe
faults
Retrieves the printer device defaults.
InitInstance Override to perform Windows instance
initialization, such as creating your window
objects.
Run Runs the default message loop. Override to
customize the message loop.
OnIdle Override to perform application-specific idle-
time processing.
ExitInstance Override to clean up when your application
terminates.
HideApplication Hides the application before closing all
documents.
CloseAllDocuments Closes all open documents.
PreTranslateMessag
e
Filters messages before they are dispatched to
the Windows functions ::TranslateMessage
and ::DispatchMessage.
SaveAllModified Prompts the user to save all modified
documents.
DoMessageBox Implements AfxMessageBox for the
application.
ProcessMessageFilt
er
Intercepts certain messages before they reach
the application.
ProcessWndProcEx
ception
Intercepts all unhandled exceptions thrown by
the application’s message and command
handlers.
DoWaitCursor Turns the wait cursor on and off.
OnDDECommand Called by the framework in response to a
dynamic data exchange (DDE) execute
command.
WinHelp Calls the WinHelp Windows function.
LoadStdProfileSetti
ngs
Loads standard .INI file settings and enables
the MRU file list feature.
SetDialogBkColor Sets the default background color for dialog
boxes and message boxes.
SetRegistryKey Causes application settings to be stored in the
registry instead of .INI files.
EnableShellOpen Allows the user to open data files from the
Windows File Manager.
RegisterShellFileTy
pes
Registers all the application’s document types
with the Windows File Manager.
Enable3dControls Enables controls with three-dimensional
appearance.
Enable3dControlsSt
atic
Enables controls with a three-dimensional
appearance.
OnFileNew Implements the ID_FILE_NEW command.
OnFileOpen Implements the ID_FILE_OPEN command.
OnFilePrintSetup Implements the ID_FILE_PRINT_SETUP
command.
OnContextHelp Handles SHIFT+F1 Help within the
application.
OnHelp Handles F1 Help within the application (using
the current context).
OnHelpIndex Handles the ID_HELP_INDEX command
and provides a default Help topic.
OnHelpFinder Handles the ID_HELP_FINDER and
ID_DEFAULT_HELP commands.
OnHelpUsing Handles the ID_HELP_USING command.
CDocument
CDocument Constructs a CDocument object.
AddView Attaches a view to the document.
GetDocTemplate Returns a pointer to the document template that
describes the type of the document.
GetFirstViewPositio
n
Returns the position of the first in the list of
views; used to begin iteration.
GetNextView Iterates through the list of views associated
with the document.
GetPathName Returns the path of the document’s data file.
GetTitle Returns the document’s title.
IsModified Indicates whether the document has been
modified since it was last saved.
RemoveView Detaches a view from the document.
SetModifiedFlag Sets a flag indicating that you have modified
the document since it was last saved.
SetPathName Sets the path of the data file used by the
document.
SetTitle Sets the document’s title.
UpdateAllViews Notifies all views that document has been
modified.
CanCloseFrame Advanced overridable; called before closing a
frame window viewing this document.
DeleteContents Called to perform cleanup of the document.
OnChangedViewLis
t
Called after a view is added to or removed
from the document.
OnCloseDocument Called to close the document.
OnNewDocument Called to create a new document.
OnOpenDocument Called to open an existing document.
OnSaveDocument Called to save the document to disk.
ReportSaveLoadExc
eption
Advanced overridable; called when an open or
save operation cannot be completed because of
an exception.
GetFile Returns a pointer to the desired CFile object.
ReleaseFile Releases a file to make it available for use by
other applications.
SaveModified Advanced overridable; called to ask the user
whether the document should be saved.
PreCloseFrame Called before the frame window is closed.
OnFileSendMail Sends a mail message with the document
attached.
OnUpdateFileSend
Mail
Enables the Send Mail command if mail
support is present.
CView
DoPreparePrinting Displays Print dialog box and creates printer
device context; call when overriding the
OnPreparePrinting member function.
GetDocument Returns the document associated with the view.
OnDragEnter Called when an item is first dragged into the
drag-and-drop region of a view.
OnDragLeave Called when a dragged item leaves the drag-
and-drop region of a view.
OnDragOver Called when an item is dragged over the drag-
and-drop region of a view.
OnDrop Called when an item has been dropped into the
drag-and-drop region of a view, default
handler.
OnDropEx Called when an item has been dropped into the
drag-and-drop region of a view, primary
handler.
OnDragScroll Called to determine whether the cursor is
dragged into the scroll region of the window.
OnInitialUpdate Called after a view is first attached to a
document.
OnScrollBy Called when a view containing active in -place
OLE items is scrolled.
OnScroll Called when OLE items are dragged beyond
the borders of the view.
IsSelected Tests whether a document item is selected.
Required for OLE support.
OnActivateView Called when a view is activated.
OnActivateFrame Called when the frame window containing the
view is activated or deactivated.
OnBeginPrinting Called when a print job begins; override to
allocate graphics device interface (GDI)
resources.
OnDraw Called to render an image of the document for
screen display, printing, or print preview.
Implementation required.
OnEndPrinting Called when a print job ends; override to
deallocate GDI resources.
OnEndPrintPreview Called when preview mode is exited.
OnPrepareDC Called before the OnDraw member function is
called for screen display or the OnPrint
member function is called for printing or print
preview.
OnPreparePrinting Called before a document is printed or
previewed; override to initialize Print dialog
box.
OnPrint Called to print or preview a page of the
document.
OnUpdate Called to notify a view that its document has
been modified.
CView Constructs a CView object.
CFrameWnd
m_bAutoMenuEnab
le
Controls automatic enable and disable
functionality for menu items.
rectDefault Pass this static CRect as a parameter when
creating a CFrameWnd object to allow
Windows to choose the window’s initial size
and position.
CFrameWnd Constructs a CFrameWnd object.
Create Call to create and initialize the Windows frame
window associated with the CFrameWnd
object.
LoadFrame Call to dynamically create a frame window
from resource information.
LoadAccelTable Call to load an accelerator table.
LoadBarState Call to restore control bar settings.
SaveBarState Call to save control bar settings.
ShowControlBar Call to show the control bar.
SetDockState Call to dock the frame window in the main
window.
GetDockState Retrieves the dock state of a frame window.
ActivateFrame Makes the frame visible and available to the
user.
InitialUpdateFrame Causes the OnInitialUpdate member function
belonging to all views in the frame window to
be called.
GetActiveFrame Returns the active CFrameWnd object.
SetActiveView Sets the active CView object.
GetActiveView Returns the active CView object.
CreateView Creates a view within a frame that is not
derived from CView.
GetActiveDocument Returns the active CDocument object.
GetControlBar Retrieves the control bar.
GetMessageString Retrieves message corresponding to a
command ID.
IsTracking Determines if splitter bar is currently being
moved.
SetMessageText Sets the text of a standard status bar.
EnableDocking Allows a control bar to be docked.
DockControlBar Docks a control bar.
FloatControlBar Floats a control bar.
BeginModalState Sets the frame window to modal.
EndModalState Ends the frame window’s modal state. Enables
all of the windows disabled by
BeginModalState .
InModalState Returns a value indicating whether or not a
frame window is in a modal state.
ShowOwnedWindo
ws
Shows all windows that are descendants of the
CFrameWnd object.
RecalcLayout Repositions the control bars of the
CFrameWnd object.
OnCreateClient Creates a client window for the frame.
OnSetPreviewMode Sets the application’s main frame window into
and out of print-preview mode.
GetMessageBar Returns a pointer to the status bar belonging to
the frame window.
NegotiateBorderSpa
ce
Negotiates border space in the frame window.
OnContextHelp Handles SHIFT+F1 Help for in -place items.
CScrollView
CScrollView Constructs a CScrollView object.
FillOutsideRect Fills the area of a view outside the scrolling
area.
GetDeviceScrollPosition Gets the current scroll position in device
units.
GetDeviceScrollSizes Gets t he current mapping mode, the total
size, and the line and page sizes of the
scrollable view. Sizes are in device units.
GetScrollPosition Gets the current scroll position in logical
units.
GetTotalSize Gets the total size of the scroll view in
logical units.
ResizeParentToFit Causes the size of the view to dictate the
size of its frame.
ScrollToPosition Scrolls the view to a given point, specified
in logical units.
SetScaleToFitSize Puts the scroll view into scale-to-fit mode.
SetScrollSizes Sets the scroll view’s mapping mode, total
size, and horizontal and vertical scroll
amounts.
CWnd
m_hWnd Indicates the HWND attached to this CWnd.
CWnd Constructs a CWnd object.
DestroyWindow Destroys the attached Windows window.
Create Creates and initializes the child window
associated with the CWnd object.
PreCreateWindow Called before the creation of the Windows
window attached to this CWnd object.
CalcWindowRect Called to calculate the window rectangle from
the client rectangle.
GetStyle Returns the current window style.
GetExStyle Returns the window’s extended style.
Attach Attaches a Windows handle to a CWnd object.
Detach Detaches a Windows handle from a CWnd
object and returns the handle.
PreSubclassWindow Allows other necessary subclassing to occur
before SubclassWindow is called.
SubclassWindow Attaches a window to a CWnd object and
makes it route messages through the CWnd’s
message map.
UnsubclassWindow Detaches a window from a CWnd object
FromHandle Returns a pointer to a CWnd object when
given a handle to a window. If a CWnd object
is not attached to the handle, a temporary
CWnd object is created and attached.
FromHandlePerman
ent
Returns a pointer to a CWnd object when
given a handle to a window. If a CWnd object
is not attached to the handle, NULL is
returned.
DeleteTempMap Called automatically by the CWinApp idle-
time handler and deletes any temporary CWnd
objects created by FromHandle.
GetSafeHwnd Returns m_hWnd, or NULL if the this pointer
is NULL.
CreateEx Creates a Windows overlapped, pop-up, or
child window and attaches it to a CWnd
object.
CreateControl Create an OLE control that will be represented
in an MFC program by a CWnd object.
IsWindowEnabled Determines whether the window is enabled for
mouse and keyboard input.
EnableWindow Enables or disables mouse and keyboard input.
GetActiveWindow Retrieves the active window.
SetActiveWindow Activates the window.
GetCapture Retrieves the CWnd that has the mouse
capture.
SetCapture Causes all subsequent mouse input to be sent to
the CWnd.
GetFocus Retrieves the CWnd that currently has the
input focus.
SetFocus Claims the input focus.
GetDesktopWindow Retrieves the Windows desktop window.
GetForegroundWin
dow
Returns a pointer to the foreground window
(the top-level window with which the user is
currently working).
SetForegroundWind
ow
Puts the thread that created the window into the
foreground and activates the window.
GetIcon Retrieves the handle to an icon.
SetIcon Sets the handle to a specific icon.
GetWindowContext
HelpId
Retrieves the help context identifier.
SetWindowContext
HelpId
Sets the help context identifier.
ModifyStyle Modifies the current window style.
ModifyStyleEx Modifies the window’s extended style.
GetWindowPlaceme
nt
Retrieves the show state and the normal
(restored), minimized, and maximized
positions of a window.
SetWindowPlaceme
nt
Sets the show state and the normal (restored),
minimized, and maximized positions for a
window.
GetWindowRgn Retrieves a copy of the window region of a
window.
SetWindowRgn Sets the region of a window.
IsIconic Determines whether CWnd is minimized
(iconic).
IsZoomed Determines whether CWnd is maximized.
MoveWindow Changes the position and dimensions of
CWnd.
SetWindowPos Changes the size, position, and ordering of
child, pop-up, and top-level windows.
ArrangeIconicWind
ows
Arranges all the minimized (iconic) child
windows.
BringWindowToTo
p
Brings CWnd to the top of a stack of
overlapping windows.
GetWindowRect Gets the screen coordinates of CWnd.
GetClientRect Gets the dimensions of the CWnd client area.
ChildWindowFrom
Point
Determines which, if any, of the child windows
contains the specified point.
FindWindow Returns the handle of the window, which is
identified by its window name and window
class.
GetNextWindow Returns the next (or previous) window in the
window manager’s list.
GetOwner Retrieves a pointer to the owner of a CWnd.
SetOwner Changes the owner of a CWnd.
GetTopWindow Returns the first child window that belongs to
the CWnd.
GetWindow Returns the window with the specified
relationship to this window.
GetLastActivePopu
p
Determines which pop-up window owned by
CWnd was most recently active.
IsChild Indicates whether CWnd is a child window or
other direct descendant of the specified
window.
GetParent Retrieves the parent window of CWnd (if any).
GetSafeOwner Retrieves the safe owner for the given window.
SetParent Changes the parent window.
WindowFromPoint Identifies the window that contains the given
point.
GetDlgItem Retrieves the control with the specified ID
from the specified dialog box.
GetDlgCtrlID If the CWnd is a child window, calling this
function returns its ID value.
GetDescendantWin
dow
Searches all descendant windows and returns
the window with the specified ID.
GetParentFrame Retrieves the CWnd object’s parent frame
window.
SendMessageToDes
cendants
Sends a message to all descendant windows of
the window.
GetTopLevelParent Retrieves the window’s top-level parent.
GetTopLevelOwner Retrieves the top-level window.
GetParentOwner Returns a pointer to a child window’s parent
window.
GetTopLevelFrame Retrieves the window’s top-level frame
window.
UpdateDialogContr
ols
Call to update the state of dialog buttons and
other controls.
UpdateData Initializes or retrieves data from a dialog box.
CenterWindow Centers a window relative to its parent.
BeginPaint Prepares CWnd for painting.
EndPaint Marks the end of painting.
Print Draws the current window in the specified
device context.
PrintClient Draws any window in the specified device
context (usually a printer device context).
LockWindowUpdat
e
Disables or reenables drawing in the given
window.
UnlockWindowUpd
ate
Unlocks a window that was locked with
CWnd::LockWindowUpdate .
GetDC Retrieves a display context for the client area.
GetDCEx Retrieves a display context for the client area,
and enables clipping while drawing.
RedrawWindow Updates the specified rectangle or region in the
client area.
GetWindowDC Retrieves the display context for the whole
window, including the caption bar, menus, and
scroll bars.
ReleaseDC Releases client and window device contexts,
freeing them for use by other applications.
UpdateWindow Updates the client area.
SetRedraw Allows changes in CWnd to be redrawn or
prevents changes from being redrawn.
GetUpdateRect Retrieves the coordinates of the smallest
rectangle that completely encloses the CWnd
update region.
GetUpdateRgn Retrieves the CWnd update region.
Invalidate Invalidates the entire client area.
InvalidateRect Invalidates the client area within the given
rectangle by adding that rectangle to the
current update region.
InvalidateRgn Invalidates the client area within the given
region by adding that region to the current
update region.
ValidateRect Validates the client area within the given
rectangle by removing the rectangle from the
current update region.
ValidateRgn Validates the client area within the given
region by removing the region from the current
update region.
ShowWindow Shows or hides the window.
IsWindowVisible Determines whether the window is visible.
ShowOwnedPopups Shows or hides all pop-up windows owned by
the window.
EnableScrollBar Enables or disables one or both arrows of a
scroll bar.
MapWindowPoints Converts (maps) a set of points from the
coordinate space of the CWnd to the
coordinate space of another window.
ClientToScreen Converts the client coordinates of a given point
or rectangle on the display to screen
coordinates.
ScreenToClient Converts the screen coordinates of a given
point or rectangle on the display to client
coordinates.
SetWindowText Sets the window text or caption tit le (if it has
one) to the specified text.
GetWindowText Returns the window text or caption title (if it
has one).
GetWindowTextLen
gth
Returns the length of the window’s text or
caption title.
SetFont Sets the current font.
GetFont Retrieves the current font.
GetScrollPos Retrieves the current position of a scroll box.
GetScrollRange Copies the current minimum and maximum
scroll-bar positions for the given scroll bar.
ScrollWindow Scrolls the contents of the client area.
ScrollWindowEx Scrolls the contents of the client area. Similar
to ScrollWindow, with additional features.
GetScrollInfo Retrieves the information that the
SCROLLINFO structure maintains about a
scroll bar.
GetScrollLimit Retrieves the limit of the scroll bar.
SetScrollInfo Sets information about the scroll bar.
SetScrollPos Sets the current position of a scroll box and, if
specified, redraws the scroll bar to reflect the
new position.
SetScrollRange Sets minimum and maximum position values
for the given scroll bar.
ShowScrollBar Displays or hides a scroll bar.
EnableScrollBarCtrl Enables or disables a sibling scroll-bar control.
GetScrollBarCtrl Returns a sibling scroll-bar control.
RepositionBars Repositions control bars in the client area.
DragAcceptFiles Indicates the window will accept dragged files.
CreateCaret Creates a new shape for the system caret and
gets ownership of the caret.
CreateSolidCaret Creates a solid block for the system caret and
gets ownership of the caret.
CreateGrayCaret Creates a gray block for the system caret and
gets ownership of the caret.
GetCaretPos Retrieves the client coordinates of the caret’s
current position.
SetCaretPos Moves the caret to a specified position.
HideCaret Hides the caret by removing it from the display
screen.
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.
剩余18页未读,继续阅读
资源评论
- lengyuecanqiu2011-10-17适合初学者!!!
- fert1302014-03-29适合初学者快速上手
- fanwenyuan_fwy2011-09-22对初学者很有用
sooqing
- 粉丝: 10
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功