Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Control Library
Progress Bar
Messages
 PBM_SETBKCOLOR Message

  Switch on low bandwidth view
PBM_SETBKCOLOR Message

Sets the background color in the progress bar.

Syntax

To send this message, call the SendMessage function as follows.
lResult = SendMessage(     // returns LRESULT in lResult
   (HWND) hWndControl,     // handle to destination control
   (UINT) PBM_SETBKCOLOR,     // message ID
   (WPARAM) wParam,     // = 0; not used, must be zero
   (LPARAM) lParam     // = (LPARAM) (COLORREF) clrBk;
);

Parameters

wParam
Must be zero.
clrBk
COLORREF value that specifies the new background color. Specify the CLR_DEFAULT value to cause the progress bar to use its default background color.

Return Value

Remarks

When visual styles are enabled, this message has no effect.

Message Information

Minimum DLL Versioncomctl32.dll version 4.71 or later
Headercommctrl.h
Minimum operating systems Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker