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
   hWndControl,           // (HWND) handle to destination control
   PBM_GETBKCOLOR,        // (UINT) message ID
   wParam,                // = 0; not used, must be zero 
   lParam                 // = 0L; not used, must be zero
);

Parameters

wParam
Must be zero.
lParam
Must be zero.

Return Value

Returns the background color of the progress bar.

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 :


Page view tracker