RemoveWindowClass Method
Description
Specifies that a specific window class should not be skinned. For example, you might not want buttons skinned in your application.
Syntax
Public Sub RemoveWindowClass( _
ByVal [ClassName](#) As String _
)
Parameters
- ClassName: Name of the class to remove from the SkinFramework. This class will no longer get skinned.
Remarks
The RemoveWindowClass method is used to stop the SkinFramework from skinning a specific window class (component) in an application. For example, you can specify that buttons or scrollbars will not get skinned.
To use the RemoveWindowClass method, you will need to know the Window Class name of the component you wish to remove. There are several standard names like "Button" and "ListBox", but you may need to use a tool like Microsoft Spy++ (pictured below) to determine a specific Window Class name. In the picture below, Spy++ was used to determine the Window Class name of the "OK" button of a color chooser dialog. Now you could pass the "Button" Window Class to the RemoveWindowClass method to stop the skin framework from skinning them.

See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.