CWnd Members

Base Class Members

CObject Members

CCmdTarget Members

Caret Functions

Help command Handlers and Functions

Operators

Coordinate Mapping Functions

Window Message Functions

Nonclient-Area Message Handlers

Dialog-Box Item Functions

Active Accessibility Functions

 

Drag-Drop Functions

Overridables

Menu Loop Notification

Initialization

Data-Binding Functions

Initialization Message Handlers

Scrolling Functions

ActiveX Controls

Clipboard Message Handlers

Update/Painting Functions

Alert Functions

Input Message Handlers

Window Access Functions

Timer Functions

Control Message Handlers

Window Size and Position

Tool Tip Functions

General Message Handlers

Window State Functions

Menu Functions

System Message Handlers

Window Text Functions

Clipboard Functions

MDI Message Handlers

Data Members

m_hWnd

Indicates the HWND attached to this CWnd.

Construction/Destruction

CWnd

Constructs a CWnd object.

DestroyWindow

Destroys the attached Windows window.

Initialization

Attach

Attaches a Windows handle to a CWnd object.

CalcWindowRect

Called to calculate the window rectangle from the client rectangle.

Create

Creates and initializes the child window associated with the CWnd object.

CreateControl

Create an ActiveX control that will be represented in an MFC program by a CWnd object.

CreateEx

Creates a Windows overlapped, pop-up, or child window and attaches it to a CWnd object.

DeleteTempMap

Called automatically by the CWinApp idle-time handler and deletes any temporary CWnd objects created by FromHandle.

Detach

Detaches a Windows handle from a CWnd object and returns the handle.

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.

FromHandlePermanent

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.

GetExStyle

Returns the window's extended style.

GetSafeHwnd

Returns m_hWnd, or NULL if the this pointer is NULL.

GetStyle

Returns the current window style.

PreCreateWindow

Called before the creation of the Windows window attached to this CWnd object.

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

Window State Functions

BeginModalState

Call this member function to make a frame window modal.

EnableWindow

Enables or disables mouse and keyboard input.

EndModalState

Call this member function to change a frame window from modal to modeless.

GetActiveWindow

Retrieves the active window.

GetCapture

Retrieves the CWnd that has the mouse capture.

GetDesktopWindow

Retrieves the Windows desktop window.

GetFocus

Retrieves the CWnd that currently has the input focus.

GetForegroundWindow

Returns a pointer to the foreground window (the top-level window with which the user is currently working).

GetIcon

Retrieves the handle to an icon.

GetWindowContextHelpId

Retrieves the help context identifier.

IsWindowEnabled

Determines whether the window is enabled for mouse and keyboard input.

ModifyStyle

Modifies the current window style.

ModifyStyleEx

Modifies the window's extended style.

SetActiveWindow

Activates the window.

SetCapture

Causes all subsequent mouse input to be sent to the CWnd.

SetFocus

Claims the input focus.

SetForegroundWindow

Puts the thread that created the window into the foreground and activates the window.

SetIcon

Sets the handle to a specific icon.

SetWindowContextHelpId

Sets the help context identifier.

Window Size and Position

ArrangeIconicWindows

Arranges all the minimized (iconic) child windows.

BringWindowToTop

Brings CWnd to the top of a stack of overlapping windows.

CloseWindow

Minimizes the window.

GetClientRect

Gets the dimensions of the CWnd client area.

GetWindowPlacement

Retrieves the show state and the normal (restored), minimized, and maximized positions of a window.

GetWindowRect

Gets the screen coordinates of CWnd.

GetWindowRgn

Retrieves a copy of the window 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.

SetWindowPlacement

Sets the show state and the normal (restored), minimized, and maximized positions for a window.

SetWindowPos

Changes the size, position, and ordering of child, pop-up, and top-level windows.

SetWindowRgn

Sets the region of a window.

Window Access Functions

CenterWindow

Centers a window relative to its parent.

ChildWindowFromPoint

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.

FindWindowEx

Returns the handle of the window, which is identified by its window name and window class.

GetAncestor

Retrieves the ancestor window object of the specified window.

GetDescendantWindow

Searches all descendant windows and returns the window with the specified ID.

GetDlgCtrlID

If the CWnd is a child window, calling this function returns its ID value.

GetDlgItem

Retrieves the control with the specified ID from the specified dialog box.

GetLayeredWindowAttributes

Retrieves the opacity and transparency color key of a layered window.

GetLastActivePopup

Determines which pop-up window owned by CWnd was most recently active.

GetNextWindow

Returns the next (or previous) window in the window manager's list.

GetOwner

Retrieves a pointer to the owner of a CWnd.

GetParent

Retrieves the parent window of CWnd (if any).

GetParentFrame

Retrieves the CWnd object's parent frame window.

GetParentOwner

Returns a pointer to a child window's parent window.

GetSafeOwner

Retrieves the safe owner for the given window.

GetTopLevelFrame

Retrieves the window's top-level frame window.

GetTopLevelOwner

Retrieves the top-level window.

GetTopLevelParent

Retrieves the window's top-level parent.

GetTopWindow

Returns the first child window that belongs to the CWnd.

GetWindow

Returns the window with the specified relationship to this window.

GetWindowInfo

Returns information about the window.

GetWindowedChildCount

Returns the number of associated child windows.

GetWindowlessChildCount

Returns the number of associated windowless child windows.

IsChild

Indicates whether CWnd is a child window or other direct descendant of the specified window.

SendMessageToDescendants

Sends a message to all descendant windows of the window.

SetDlgCtrlID

Sets the window or control ID for the window (which can be any child window, not only a control in a dialog box).

SetOwner

Changes the owner of a CWnd.

SetParent

Changes the parent window.

UpdateData

Initializes or retrieves data from a dialog box.

UpdateDialogControls

Call to update the state of dialog buttons and other controls.

WindowFromPoint

Identifies the window that contains the given point.

Update/Painting Functions

AnimateWindow

Animates the associated window object.

BeginPaint

Prepares CWnd for painting.

DrawAnimatedRects

Draws a wire-frame rectangle and animates it to indicate the opening of an icon or the minimizing or maximizing of a window.

DrawCaption

Draws a caption.

EnableScrollBar

Enables or disables one or both arrows of a scroll bar.

EndPaint

Marks the end of painting.

GetDC

Retrieves a display context for the client area.

GetDCEx

Retrieves a display context for the client area, and enables clipping while drawing.

GetUpdateRect

Retrieves the coordinates of the smallest rectangle that completely encloses the CWnd update region.

GetUpdateRgn

Retrieves the CWnd update region.

GetWindowDC

Retrieves the display context for the whole window, including the caption bar, menus, and scroll bars.

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.

IsWindowVisible

Determines whether the window is visible.

LockWindowUpdate

Disables or reenables drawing in the given window.

Print

Draws the current window in the specified device context.

PrintWindow

Copies a visual window into the specified device context, typically a printer DC.

PrintClient

Draws any window in the specified device context (usually a printer device context).

RedrawWindow

Updates the specified rectangle or region in the client area.

ReleaseDC

Releases client and window device contexts, freeing them for use by other applications.

SetLayeredWindowAttributes

Sets the opacity and transparency color key of a layered window.

SetRedraw

Allows changes in CWnd to be redrawn or prevents changes from being redrawn.

ShowOwnedPopups

Shows or hides all pop-up windows owned by the window.

ShowWindow

Shows or hides the window.

UnlockWindowUpdate

Unlocks a window that was locked with CWnd::LockWindowUpdate.

UpdateLayeredWindow

Updates the position, size, shape, content, and translucency of a layered window.

UpdateWindow

Updates the client area.

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.

Coordinate Mapping Functions

ClientToScreen

Converts the client coordinates of a given point or rectangle on the display to screen coordinates.

MapWindowPoints

Converts (maps) a set of points from the coordinate space of the CWnd to the coordinate space of another window.

ScreenToClient

Converts the screen coordinates of a given point or rectangle on the display to client coordinates.

Window Text Functions

GetFont

Retrieves the current font.

GetWindowText

Returns the window text or caption title (if it has one).

GetWindowTextLength

Returns the length of the window's text or caption title.

SetFont

Sets the current font.

SetWindowText

Sets the window text or caption title (if it has one) to the specified text.

Scrolling Functions

EnableScrollBarCtrl

Enables or disables a sibling scroll-bar control.

GetScrollBarCtrl

Returns a sibling scroll-bar control.

GetScrollInfo

Retrieves the information that the SCROLLINFO structure maintains about a scroll bar.

GetScrollLimit

Retrieves the limit of the scroll bar.

GetScrollPos

Retrieves the current position of a scroll box.

GetScrollRange

Copies the current minimum and maximum scroll-bar positions for the given scroll bar.

RepositionBars

Repositions control bars in the client area.

ScrollWindow

Scrolls the contents of the client area.

ScrollWindowEx

Scrolls the contents of the client area. Similar to ScrollWindow, with additional features.

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.

Drag-Drop Functions

DragAcceptFiles

Indicates the window will accept dragged files.

Caret Functions

CreateCaret

Creates a new shape 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.

CreateSolidCaret

Creates a solid block for the system caret and gets ownership of the caret.

GetCaretPos

Retrieves the client coordinates of the caret's current position.

HideCaret

Hides the caret by removing it from the display screen.

SetCaretPos

Moves the caret to a specified position.

ShowCaret

Shows the caret on the display at the caret's current position. Once shown, the caret begins flashing automatically.

Dialog-Box Item Functions

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.

ContinueModal

Continues a window's modal status.

DlgDirList

Fills a list box with a file or directory listing.

DlgDirListComboBox

Fills the list box of a combo box with a file or directory listing.

DlgDirSelect

Retrieves the current selection from a list box.

DlgDirSelectComboBox

Retrieves the current selection from the list box of a combo box.

EndModalLoop

Ends a window's modal status.

ExecuteDlgInit

Initiates a dialog resource.

GetCheckedRadioButton

Returns the ID of the currently checked radio button in a group of buttons.

GetScrollBarInfo

Retrieves information about the specified scroll bar.

GetTitleBarInfo

Retrieves information about the specified title bar.

GetMenuBarInfo

Retrieves information about the specified menu bar.

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.

GetNextDlgGroupItem

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.

IsDialogMessage

Determines whether the given message is intended for the modeless dialog box and, if so, processes it.

IsDlgButtonChecked

Determines whether a button control is checked.

RunModalLoop

Retrieves, translates, or dispatches messages for a window that is in modal status.

SendDlgItemMessage

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.

Data-Binding Functions

BindDefaultProperty

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 cursor-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.

Menu Functions

DrawMenuBar

Redraws the menu bar.

GetMenu

Retrieves a pointer to the specified menu.

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.

SetMenu

Sets the menu to the specified menu.

ToolTip Functions

CancelToolTips

Disables the tooltip control.

EnableToolTips

Enables the tooltip control.

EnableTrackingToolTips

Enables the tooltip control in tracking mode.

FilterToolTipMessage

Retrieves the title or text associated with a control in a dialog box.

OnToolHitTest

Determines whether a point is in the bounding rectangle of the specified tool and retrieves information about the tool.

Timer Functions

KillTimer

Kills a system timer.

SetTimer

Installs a system timer that sends a WM_TIMER message when triggered.

Alert Functions

FlashWindow

Flashes the window once.

FlashWindowEx

Flashes the window with additional functionality.

MessageBox

Creates and displays a window that contains an application-supplied message and caption.

Window Message Functions

Default

Calls the default window procedure, which provides default processing for any window messages that an application does not process.

GetCurrentMessage

Returns a pointer to the message this window is currently processing. Should only be called when in an OnMessage message-handler member function.

PostMessage

Places a message in the application queue, then returns without waiting for the window to process the message.

PreTranslateMessage

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.

SendNotifyMessage

Sends the specified message to the window and returns as soon as possible, depending on whether the calling thread created the window.

Clipboard Functions

ChangeClipboardChain

Removes CWnd from the chain of Clipboard viewers.

GetClipboardOwner

Retrieves a pointer to the current owner of the Clipboard.

GetClipboardViewer

Retrieves a pointer to the first window in the chain of Clipboard viewers.

GetOpenClipboardWindow

Retrieves a pointer to the window that currently has the Clipboard open.

OpenClipboard

Opens the Clipboard. Other applications will not be able to modify the Clipboard until the Windows CloseClipboard function is called.

SetClipboardViewer

Adds CWnd to the chain of windows that are notified whenever the contents of the Clipboard are changed.

ActiveX Controls

GetControlUnknown

Retrieves a pointer to an unknown ActiveX control.

GetOleControlSite

Retrieves the custom site for the specified ActiveX control.

GetProperty

Retrieves an ActiveX control property.

InvokeHelper

Invokes an ActiveX control method or property.

OnAmbientProperty

Implement ambient property values.

SetProperty

Sets an ActiveX control property.

Overridables

DefWindowProc

Calls the default window procedure, which provides default processing for any window messages that an application does not process.

DoDataExchange

For dialog data exchange and validation. Called by UpdateData.

OnChildNotify

Called by a parent window to give a notifying control a chance to respond to a control notification.

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.

PostNcDestroy

This virtual function is called by the default OnNcDestroy function after the window has been destroyed.

WindowProc

Provides a window procedure for a CWnd. The default dispatches messages through the message map.

Help Command Handlers and Functions

HtmlHelp

Called to initiate the HTMLHelp application.

OnHelpFinder

Handles the ID_HELP_FINDER and ID_DEFAULT_HELP commands.

OnHelpIndex

Handles the ID_HELP_INDEX command and provides a default Help topic.

OnHelpUsing

Handles the ID_HELP_USING command.

OnHelp

Handles F1 Help within the application (using the current context).

WinHelp

Called to initiate the WinHelp application.

Initialization Message Handlers

OnInitMenu

Called when a menu is about to become active.

OnInitMenuPopup

Called when a pop-up menu is about to become active.

System Message Handlers

OnChangeUIState

Called when the user interface (UI) state should be changed.

OnQueryUIState

Called to retrieve the user interface (UI) state for a window.

OnUpdateUIState

Called to change the user interface (UI) state for the specified window and all its child windows.

OnCompacting

Called when Windows detects that system memory is low.

OnDevModeChange

Called for all top-level windows when the user changes device-mode settings.

OnDropFiles

Called when the user releases the left mouse button over a window that has registered itself as the recipient of dropped files.

OnFontChange

Called when the pool of font resources changes.

OnPaletteChanged

Called to allow windows that use a color palette to realize their logical palettes and update their client areas.

OnPaletteIsChanging

Informs other applications when an application is going to realize its logical palette.

OnSpoolerStatus

Called from Print Manager whenever a job is added to or removed from the Print Manager queue.

OnSysChar

Called when a keystroke translates to a system character.

OnSysColorChange

Called for all top-level windows when a change is made in the system color setting.

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.

OnTimeChange

Called for all top-level windows after the system time changes.

OnWindowPosChanged

Called when the size, position, or Z-order has changed as a result of a call to SetWindowPos or another window-management function.

OnWindowPosChanging

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.

OnWinIniChange

Called for all top-level windows after the Windows initialization file, WIN.INI, is changed.

General Message Handlers

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.

OnChildActivate

Called for multiple document interface (MDI) child windows whenever the size or position of CWnd changes or CWnd is activated.

OnClose

Called as a signal that CWnd should be closed.

OnCommand

Called when the user selects a command.

OnContextMenu

Called when the user clicks the right mouse button in the window.

OnCopyData

Copies data from one application to another.

OnCreate

Called as a part of window creation.

OnCtlColor

Called if CWnd is the parent of a control when the control is about to be drawn.

OnDestroy

Called when CWnd is being destroyed.

OnDeviceChange

Notifies an application or device driver of a change to the hardware configuration of a device or the computer.

OnEnable

Called when CWnd is enabled or disabled.

OnEndSession

Called when the session is ending.

OnEnterIdle

Called to inform an application's main window procedure that a modal dialog box or a menu is entering an idle state.

OnEraseBkgnd

Called when the window background needs erasing.

OnGetMinMaxInfo

Called whenever Windows needs to know the maximized position or dimensions, or the minimum or maximum tracking size.

OnIconEraseBkgnd

Called when CWnd is minimized (iconic) and the background of the icon must be filled before painting the icon.

OnKillFocus

Called immediately before CWnd loses the input focus.

OnMenuChar

Called when the user presses a menu mnemonic character that doesn't match any of the predefined mnemonics in the current menu.

OnMenuSelect

Called when the user selects a menu item.

OnMove

Called after the position of the CWnd has been changed.

OnMoving

Indicates that a user is moving a CWnd object.

OnPaint

Called to repaint a portion of the window.

OnParentNotify

Called when a child window is created or destroyed, or when the user clicks a mouse button while the cursor is over the child window.

OnQueryDragIcon

Called when a minimized (iconic) CWnd is about to be dragged by the user.

OnQueryEndSession

Called when the user chooses to end the Windows session.

OnQueryNewPalette

Informs CWnd that it is about to receive the input focus.

OnQueryOpen

Called when CWnd is an icon and the user requests that the icon be opened.

OnSetFocus

Called after CWnd gains the input focus.

OnShowWindow

Called when CWnd is to be hidden or shown.

OnSize

Called after the size of CWnd has changed.

OnSizing

Indicates that the user is resizing the rectangle.

OnStyleChanged

Indicates that the SetWindowLong Windows function has changed one or more of the window's styles.

OnStyleChanged

Indicates that one or more of the window's styles has changed.

OnStyleChanging

Indicates that the SetWindowLong Windows function is about to change one or more of the window's styles.

OnStyleChanging

Indicates that one or more of the window's styles is about to change.

Control Message Handlers

OnCharToItem

Called by a child list box with the LBS_WANTKEYBOARDINPUT style in response to a WM_CHAR message.

OnCompareItem

Called to determine the relative position of a new item in a child sorted owner-draw combo box or list box.

OnDeleteItem

Called when an owner-draw child list box or combo box is destroyed or when items are removed from the control.

OnDrawItem

Called when a visual aspect of an owner-draw child button control, combo-box control, list-box control, or menu needs to be drawn.

OnGetDlgCode

Called for a control so the control can process arrow-key and TAB-key input itself.

OnMeasureItem

Called for an owner-draw child combo box, list box, or menu item when the control is created. CWnd informs Windows of the dimensions of the control.

OnVKeyToItem

Called by a list box owned by CWnd in response to a WM_KEYDOWN message.

OnWndMsg

Indicates if a windows message was handled.

ReflectChildNotify

Helper function which reflects a message to its source.

ReflectLastMsg

Reflects the last message to the child window.

SendChildNotifyLastMsg

Provides a notification message to a child window, from the parent window, so the child window can handle a task.

Input Message Handlers

OnCaptureChanged

Sends a message to the window that is losing the mouse capture.

OnChar

Called when a keystroke translates to a nonsystem character.

OnDeadChar

Called when a keystroke translates to a nonsystem dead character (such as accent characters).

OnHScroll

Called when the user clicks the horizontal scroll bar of CWnd.

OnKeyDown

Called when a nonsystem key is pressed.

OnKeyUp

Called when a nonsystem key is released.

OnLButtonDblClk

Called when the user double-clicks the left mouse button.

OnLButtonDown

Called when the user presses the left mouse button.

OnLButtonUp

Called when the user releases the left mouse button.

OnMButtonDblClk

Called when the user double-clicks the middle mouse button.

OnMButtonDown

Called when the user presses the middle mouse button.

OnMButtonUp

Called when the user releases the middle mouse button.

OnMouseActivate

Called when the cursor is in an inactive window and the user presses a mouse button.

OnMouseMove

Called when the mouse cursor moves.

OnMouseWheel

Called when a user rotates the mouse wheel. Uses Windows NT 4.0 message handling.

OnRButtonDblClk

Called when the user double-clicks the right mouse button.

OnRButtonDown

Called when the user presses the right mouse button.

OnRButtonUp

Called when the user releases the right mouse button.

OnRegisteredMouseWheel

Called when a user rotates the mouse wheel. Uses Windows 95/98 and Windows NT 3.51 message-handling.

OnSetCursor

Called if mouse input is not captured and the mouse causes cursor movement within a window.

OnTimer

Called after each interval specified in SetTimer.

OnVScroll

Called when the user clicks the window's vertical scroll bar.

Nonclient-Area Message Handlers

OnNcActivate

Called when the nonclient area needs to be changed to indicate an active or inactive state.

OnNcCalcSize

Called when the size and position of the client area need to be calculated.

OnNcCreate

Called prior to OnCreate when the nonclient area is being created.

OnNcDestroy

Called when the nonclient area is being destroyed.

OnNcHitTest

Called by Windows every time the mouse is moved if CWnd contains the cursor or has captured mouse input with SetCapture.

OnNcLButtonDblClk

Called when the user double-clicks the left mouse button while the cursor is within a nonclient area of CWnd.

OnNcLButtonDown

Called when the user presses the left mouse button while the cursor is within a nonclient area of CWnd.

OnNcLButtonUp

Called when the user releases the left mouse button while the cursor is within a nonclient area of CWnd.

OnNcMButtonDblClk

Called when the user double-clicks the middle mouse button while the cursor is within a nonclient area of CWnd.

OnNcMButtonDown

Called when the user presses the middle mouse button while the cursor is within a nonclient area of CWnd.

OnNcMButtonUp

Called when the user releases the middle mouse button while the cursor is within a nonclient area of CWnd.

OnNcMouseMove

Called when the cursor is moved within a nonclient area of CWnd.

OnNcPaint

Called when the nonclient area needs painting.

OnNcRButtonDblClk

Called when the user double-clicks the right mouse button while the cursor is within a nonclient area of CWnd.

OnNcRButtonDown

Called when the user presses the right mouse button while the cursor is within a nonclient area of CWnd.

OnNcRButtonUp

Called when the user releases the right mouse button while the cursor is within a nonclient area of CWnd.

MDI Message Handlers

OnMDIActivate

Called when an MDI child window is activated or deactivated.

Clipboard Message Handlers

OnAskCbFormatName

Called by a Clipboard viewer application when a Clipboard owner will display the Clipboard contents.

OnChangeCbChain

Notifies that a specified window is being removed from the chain.

OnDestroyClipboard

Called when the Clipboard is emptied through a call to the Windows EmptyClipboard function.

OnDrawClipboard

Called when the contents of the change.

OnHScrollClipboard

Called when a Clipboard owner should scroll the Clipboard image, invalidate the appropriate section, and update the scroll-bar values.

OnPaintClipboard

Called when the client area of the Clipboard viewer needs repainting.

OnRenderAllFormats

Called when the owner application is being destroyed and needs to render all its formats.

OnRenderFormat

Called for the Clipboard owner when a particular format with delayed rendering needs to be rendered.

OnSizeClipboard

Called when the size of the client area of the Clipboard-viewer window has changed.

OnVScrollClipboard

Called when the owner should scroll the Clipboard image, invalidate the appropriate section, and update the scroll-bar values.

Menu Loop Notification

OnEnterMenuLoop

Called when a menu modal loop has been entered.

OnExitMenuLoop

Called when a menu modal loop has been exited.

Operators

operator !=

Determines if a window is not the same as the window whose handle is m_hWnd.

operator ==

Determines if a window is the same as the window whose handle is m_hWnd.

operator HWND

Call to get a handle to a window.

Active Accessibility

accDoDefaultAction

Called by the framework to perform the object's default action.

accHitTest

Called by the framework to retrieve the child element or child object at a given point on the screen.

accLocation

Called by the framework to retrieve the specified object's current screen location.

accNavigate

Called by the framework to traverse to another user interface element within a container and if possible, retrieve the object.

accSelect

Called by the framework to modify the selection or move the keyboard focus of the specified object.

CreateAccessibleProxy

Creates an Active Accessibility proxy for the specified object.

EnableActiveAccessibility

Enables user-defined Active Accessibility functions.

get_accChild

Called by the framework to retrieve the address of an IDispatch interface for the specified child.

get_accChildCount

Called by the framework to retrieve the number of children belonging to this object.

get_accDefaultAction

Called by the framework to retrieve a string that describes the object's default action.

get_accDescription

Called by framework to retrieve a string that describes the visual appearance of the specified object.

get_accFocus

Called by the framework to retrieve the object that has the keyboard focus.

get_accHelp

Called by the framework to retrieve an object's Help property string.

get_accHelpTopic

Called by the framework to retrieve the full path of the WinHelp file associated with the specified object and the identifier of the appropriate topic within that file.

get_accKeyboardShortcut

Called by the framework to retrieve the specified object's shortcut key or access key.

get_accName

Called by the framework to retrieve the name of the specified object.

get_accParent

Called by the framework to retrieve the IDispatch interface of the object's parent.

get_accRole

Called by the framework to retrieve information that describes the role of the specified object.

get_accSelection

Called by the framework to retrieve the selected children of this object.

get_accState

Called by the framework to retrieve the current state of the specified object.

NotifyWinEvent

Signals the system that a predefined event occurred.

get_accValue

Called by the framework to retrieve the value of the specified object.

PaintWindowlessControls

Draws windowless controls on the control container.

See Also

Concepts

CWnd Class

Hierarchy Chart