PBM_GETBARCOLOR Message

Gets the 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_GETBARCOLOR,       // (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 color of the progress bar.

Remarks

This is the color set by the PBM_SETBARCOLOR 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 4.00 or later
Headercommctrl.h
Minimum operating systems Windows Vista
Tags :


Page view tracker