Click to See Complete Forum and Search --> : how to change windows color


xixi
August 28th, 2001, 09:12 AM
i want to change window color ,the window was produce by the follow code:
ToolBarWnd = CreateWindowEX(0, "ToolbarWindow32", "", _
WS_CHILD Or WS_VISIBLE Or TB_AUTOSIZE Or Wrap Or List Or _
WS_CHILD Or CCS_NODIVIDER Or TBSTYLE_TOOLTIPS Or WS_CLIPCHILDREN _
Or CCS_NOPARENTALIGN Or CCS_NORESIZE Or TBSTYLE_FLAT, _
0, 0, 0, 0, Toolbar, 0&, App.hInstance, 0&)
who can answer me?thank you very much !

berta
August 28th, 2001, 09:23 AM
U can try in registration of "ToolbarWindow32".
U can use HBRUSH of struct _WNDCLASS.
--------------
ATOM RegisterClassEx(
CONST WNDCLASSEX *lpwcx // pointer to structure with class data
);

Public Declare Function RegisterClassEx Lib "user32" Alias "RegisterClassExA" (pcWndClassEx As WNDCLASSEX) As Integer
--------
typedef struct _WNDCLASS {
UINT style;
WNDPROC lpfnWndProc;
int cbClsExtra;
int cbWndExtra;
HANDLE hInstance;
HICON hIcon;
HCURSOR hCursor;
HBRUSH hbrBackground;
LPCTSTR lpszMenuName;
LPCTSTR lpszClassName;
} WNDCLASS;
---------
sorry ...I don't find the VB declaretion...
----
hi,brt

<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/images/bertaplanet.gif'>
</center>

xixi
August 28th, 2001, 09:41 AM
thank you for help!can you give me an example?