CWindow Methods

Alert Methods
MessageBox Displays a message box.
Attribute Methods
GetExStyle Retrieves the extended window styles.
GetStyle Retrieves the window styles.
GetWindowLong Retrieves a 32-bit value at a specified offset into the extra window memory.
ModifyStyle Modifies the window styles.
ModifyStyleEx Modifies the extended window styles.
SetWindowLong Sets a 32-bit value at a specified offset into the extra window memory.
Caret Methods
CreateCaret Creates a new shape for the system caret.
CreateGrayCaret Creates a gray rectangle for the system caret.
CreateSolidCaret Creates a solid rectangle for the system caret.
HideCaret Hides the system caret.
ShowCaret Displays the system caret.
Clipboard Methods
OpenClipboard Opens the Clipboard
Construction, Destruction, and Initialization
Attach Attaches a window to the CWindow object.
CWindow Constructor.
DestroyWindow Destroys the window associated with the CWindow object
Detach Detaches the window from the CWindow object
Coordinate Mapping Methods
ClientToScreen Converts client coordinates to screen coordinates.
MapWindowPoints Converts a set of points from the window's coordinate space to the coordinate space of another window.
ScreenToClient Converts screen coordinates to client coordinates.
Dialog Box Item Methods
CheckDlgButton Changes the check state of the specified button.
CheckRadioButton Checks the specified radio button.
GetDlgItemInt Translates a control's text to an integer.
GetDlgItemText Retrieves a control's text.
GetNextDlgGroupItem Retrieves the previous or next control within a group of controls.
GetNextDlgTabItem Retrieves the previous or next control having the WS_TABSTOP style.
IsDlgButtonChecked Determines the check state of the button.
SendDlgItemMessage Sends a message to a control.
SetDlgItemInt Changes a control's text to the string representation of an integer value.
SetDlgItemText Changes a control's text.
Font Methods
GetFont Retrieves the window's current font.
SetFont Changes the window's current font.
Icon Methods
GetIcon Retrieves the window's large or small icon
SetIcon Changes the window's large or small icon.
Message Methods
PostMessage Places a message in the message queue associated with the thread that created the window. Returns without waiting for the thread to process the message.
SendMessage Sends a message to the window and does not return until the window procedure has processed the message.
SendNotifyMessage Sends a message to the window. If the window was created by the calling thread, SendNotifyMessage does not return until the window procedure has processed the message. Otherwise, it returns immediately.
Scrolling Methods
GetScrollPos Retrieves the position of the scroll box.
GetScrollRange Retrieves the scroll bar range.
ScrollWindowEx Scrolls the specified client area with additional features.
SetScrollPos Changes the position of the scroll box.
SetScrollRange Changes the scroll bar range.
Timer Methods
KillTimer Destroys a timer event
SetTimer Creates a timer event
Update and Painting Methods
BeginPaint Prepares the window for painting
DrawMenuBar Redraws the menu bar
EndPaint Marks the end of painting
GetDC Retrieves a device context for the client area
GetUpdateRect Retrieves the coordinates of the smallest rectangle that completely encloses the update region.
GetUpdateRgn Retrieves the update region and copies it into a specified region.
GetWindowDC Retrieves a device context for the entire window.
Invalidate Invalidates the entire client area.
InvalidateRect Invalidates the client area within the specified rectangle.
IsWindowVisible Determines the window's visibility state.
ReleaseDC Releases a device context.
SetRedraw Sets or clears the redraw flag.
ShowWindow Sets the window's show state.
UpdateWindow Updates the client area.
ValidateRect Validates the client area within the specified rectangle.
Window Access Methods
ChildWindowFromPoint Retrieves the child window containing the specified point
GetParent Retrieves the immediate parent window
GetTopLevelParent Retrieves the top-level parent or owner window
GetTopLevelWindow Retrieves the top-level owner window
GetWindow Retrieves the specified window
IsChild Determines whether the specified window is a child window
SetParent Changes the parent window
Window Size and Position Methods
BringWindowToTop Brings the window to the top of the Z order
CenterWindow Centers the window against a given window
GetClientRect Retrieves the coordinates of the client area
GetWindowRect Retrieves the window's bounding dimensions
MoveWindow Changes the window's size and position
SetWindowPos Sets the size, position, and Z order
Window State Methods
EnableWindow Enables or disables input
IsWindowEnabled Determines whether the window is enabled for input
SetActiveWindow Activates the window
SetCapture Sends all subsequent mouse input to the window
SetFocus Sets the input focus to the window
Window Text Methods
GetWindowText Retrieves the window's text
GetWindowTextLength Retrieves the length of the window's text
SetWindowText Changes the window's text
Window Tree Access Methods
GetDlgCtrlID Retrieves the window's identifier (for child windows only)
GetDlgItem Retrieves the window's identifier (for child windows only)
SetDlgCtrlID Changes the window's identifier

See Also

CWindow Overview, CWindow Operators, CWindow Data Members