RadioDld.NativeMethods.SetWindowTheme C# (CSharp) Method

SetWindowTheme() private method

private SetWindowTheme ( IntPtr hWnd, string pszSubAppName, string pszSubIdList ) : int
hWnd System.IntPtr
pszSubAppName string
pszSubIdList string
return int
        public static extern int SetWindowTheme(IntPtr hWnd, string pszSubAppName, string pszSubIdList);

Usage Example

Example #1
0
 private void SearchBox_HandleCreated(object sender, EventArgs e)
 {
     if (OsUtils.WinVistaOrLater())
     {
         // Set the theme of this parent control and the edit control, so they are rendered correctly
         Marshal.ThrowExceptionForHR(NativeMethods.SetWindowTheme(this.Handle, "SearchBoxComposited", null));
         Marshal.ThrowExceptionForHR(NativeMethods.SetWindowTheme(this.textBox.Handle, "SearchBoxEditComposited", null));
     }
 }
All Usage Examples Of RadioDld.NativeMethods::SetWindowTheme