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

  Switch on low bandwidth view
PBM_GETBKCOLOR Message

Gets the background color of 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_GETBKCOLOR,     // message ID
   (WPARAM) wParam,     // = 0; not used, must be zero
   (LPARAM) lParam     // = 0; not used, must be zero
);

Parameters

wParam
Must be zero.
lParam
Must be zero.

Return Value

Remarks

This is the color set by the PBM_SETBKCOLOR message. The default value is CLR_DEFAULT, which is defined in commctrl.h.

This function only affects the classic mode, not any visual style.

Message Information

Minimum DLL Versioncomctl32.dll version 6 or later
Headercommctrl.h
Minimum operating systems Windows Vista
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