MOzhno, ya dumayu. Sam to ya nikogda s etim delom ne rabotal, ot tebya tol`ko shas uslyshal. NO! Ya dumayu mozho po hWnd kak to sdelat`. Ya shas v shkole(XP netu), esli mozhesh`, prishli(na forum) Declaration(Public Declare Function...) etoj funkcii, a ya glyanu, mozhet che pojmu.
Potom domoj pridu, tama XP, esli smogu che sdelat`, napishu(hot` na mylo, hot` na forum, luchshe naforum-vse uznayut)
Udachi
P.S. Esli sam razberesh, pozhailusta! napishi na forum.
Public Declare Function SetWindowTheme Lib "uxtheme.dll" (ByVal hwnd As Long, ByVal pszSubAppName As String, ByVal pszSubIdList As String) As Long
Нашёл в MSDN за Апрель 2001. Написано что при передаче двух пустых строк в качестве pszSubAppName и pszSubAppName тема окна отключается. Соответственно при передаче NULL (т.е. vbNullString) он включает тему.
На окно основного приложения это прекрасно работает. На остальных теперь тоже начало работать, но вместо убирания темы творит с ними непонятно что. Не могу понять в чём дело.
[in] Handle to the window whose theme information is to be changed.
pszSubAppName
[in] Pointer to a string that contains the application name to use in place of the calling application's name. If this parameter is NULL, the calling application's name is used.
pszSubIdList
[in] Pointer to a string that contains a semicolon-separated list of class identifier (CLSID) names to use in place of the actual list passed by the window's class. If this parameter is NULL, the identifier (ID) list from the calling class is used.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The theme manager retains the pszSubAppName and the pszSubIdList associations through the lifetime of the window, even if themes subsequently change. The window is sent a WM_THEMECHANGED message at the end of a SetWindowTheme call, so that the new theme can be found and applied.
When pszSubAppName and pszSubIdList are NULL, the theme manager removes the previously applied associations. To turn off theme-awareness for the specified window, pass an empty string, (L" "), which will not match any section entries.