Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
EnableThemeDialogTexture function (uxtheme.h)
Enables or disables the visual style of the background of a dialog window.
Syntax
HRESULT EnableThemeDialogTexture(
[in] HWND hwnd,
[in] DWORD dwFlags
);
Parameters
[in] hwnd
Type: HWND
Window handle of the target dialog box.
[in] dwFlags
Type: DWORD
One of the following option flag values:
| Value | Meaning |
|---|---|
|
Disables background texturing. |
|
Enables dialog window background texturing. The texturing is defined by a visual style. |
|
Uses the Tab control texture for the background texture of a dialog window. |
|
Uses the Aero wizard texture for the background texture of a dialog window. |
|
Enables dialog window background texturing. The texture is the Tab control texture defined by the visual style. This flag is equivalent to (ETDT_ENABLE | ETDT_USETABTEXTURE). |
|
ETDT_ENABLE | ETDT_USEAEROWIZARDTABTEXTURE. |
|
ETDT_DISABLE | ETDT_ENABLE | ETDT_USETABTEXTURE | ETDT_USEAEROWIZARDTABTEXTURE. |
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
EnableThemeDialogTexture can be used to tailor dialog box compatibility with child windows and controls that may or may not coordinate rendering their client area backgrounds with that of their parent dialog box.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | uxtheme.h |
| Library | UxTheme.lib |
| DLL | UxTheme.dll |
Feedback
Was this page helpful?
