CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2001
    Posts
    76

    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 !


  2. #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>

  3. #3
    Join Date
    Jul 2001
    Posts
    76

    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
  •  





Click Here to Expand Forum to Full Width

Featured