AFX_GLOBAL_DATA Structure
The AFX_GLOBAL_DATA structure contains fields and methods that are used to manage the framework or customize the appearance and behavior of your application.
struct AFX_GLOBAL_DATA
Members
Public Constructors
Name |
Description |
---|---|
AFX_GLOBAL_DATA::AFX_GLOBAL_DATA |
Constructs a AFX_GLOBAL_DATA structure. |
AFX_GLOBAL_DATA::~AFX_GLOBAL_DATA |
Destructor. |
Public Methods
Name |
Description |
---|---|
Releases resources that are allocated by the framework, such as brushes, fonts, and DLLs. |
|
Draws the background of a control's parent in the specified area. |
|
Draws the specified text in the visual style of the specified theme. |
|
Provides a simple way to call the Windows DwmDefWindowProc method. |
|
Provides a simple way to call the Windows DwmExtendFrameIntoClientArea method. |
|
Provides a simple way to call the Windows DwmIsCompositionEnabled method. |
|
Removes the specified XML tag pair from a specified buffer. |
|
Retrieves the current color of the specified user interface element. |
|
Retrieves the predefined cursor that resembles a hand and whose identifier is IDC_HAND. |
|
Creates and stores in the global data a pointer to ITaskBarList interface. |
|
Creates and stores in the global data a pointer to ITaskBarList3 interface. |
|
Retrieves the metrics associated with the nonclient area of nonminimized windows. |
|
Determines positions of Shell auto hide bars. |
|
Retrieves the height of text characters in the current font. |
|
Indicates whether predefined 32-bit icons are supported. |
|
Indicates whether images are currently displayed in high contrast. |
|
Detects the current state of the desktop's menu animation and taskbar autohide features. |
|
Registers the specified MFC window class. |
|
Releases interfaces obtained through GetITaskbarList and GetITaskbarList3 methods. |
|
Reinitializes internal function pointers that access methods that support Windows themes and visual styles. |
|
Provides a simple way to call the Windows SetLayeredWindowAttributes method. |
|
Creates the specified logical font. |
|
Creates and initializes a Shell item object from a parsing name. |
|
Reintializes the logical fonts that are used by the framework. |
|
Initializes the colors, color depth, brushes, pens, and images that are used by the framework. |
Protected Methods
Name |
Description |
---|---|
Enables or disables Microsoft Active Accessibility support. Active Accessibility provides reliable methods for exposing information about user interface elements. |
|
Indicates whether Microsoft Active Accessibility support is enabled. |
|
Indicates whether the operating system supports layered windows. |
Data Members
Name |
Description |
---|---|
Indicates whether the current operating system supports alpha blending. |
|
Indicates whether the application is being executed under Windows 7 OS or higher |
|
Specifies gradient color of active caption. Generally used for docking panes. |
|
Specifies gradient color of inactive active caption. Generally used for docking panes. |
|
Indicates whether the framework uses predefined 32-bit color icons or icons of a lower resolution. |
|
Indicates whether a system font is used for menus, toolbars, and ribbons. |
|
Stores the handle for the hand cursor. |
|
Stores the handle for the horizontal stretch cursor. |
|
Stores the handle for the vertical stretch cursor. |
|
Stores the handle for the tool icon. |
|
Specifies the offset from the leftmost autohide toolbar to the left side of the docking bar. |
|
Specifies the gap between autohide toolbars. |
|
Specifies the thickness of the drag frame that is used to communicate the docked state. |
|
Specifies the thickness of the drag frame that is used to communicate the floating state. |
Remarks
Most of the data in the AFX_GLOBAL_DATA structure is initialized when your application starts.
Inheritance Hierarchy
Requirements
Header: afxglobals.h