CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: lihas

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    29,129

    Re: Change MenuBar & ToolBar background color

    I was having hard time getting CDDS_POSTERASE to fire, neither was I getting CDDS_POSTPAINT.
    I realized that to get CDDS_POSTPAINT you have to specify CDRF_NOTIFYPOSTPAINT in CDDS_PREPAINT stage,...
  2. Replies
    8
    Views
    29,129

    Re: Change MenuBar & ToolBar background color

    Custom draw worked for me.
    Here is my code.

    m_toolbar1.CreateEx(this, TBSTYLE_FLAT | TBSTYLE_CUSTOMERASE, WS_CHILD | WS_VISIBLE | CBRS_ALIGN_TOP, CRect(10,10,100,100), AFX_IDW_TOOLBAR);...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured