|
-
August 28th, 2001, 09:12 AM
#1
how to change windows color
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 !
-
August 28th, 2001, 09:23 AM
#2
Re: how to change windows color
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/im...ertaplanet.gif'>
</center>
-
August 28th, 2001, 09:41 AM
#3
Re: how to change windows color
thank you for help!can you give me an example?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|