Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:plugin_sdk:utility_functions:paintcustompart

PaintCustomPart(
     HDC:hDC,
     const CUSTOMPARTPAINTDATA*:pPaintData
)
→ bool

Arguments

hDC

[in]

pPaintData

[in] Pointer to a CUSTOMPARTPAINTDATA structure.

Description

The PaintCustomPart function paints one of the custom Opus interface parts (such as the play, pause and stop symbols).

The CUSTOMPARTPAINTDATA structure has the following fields:

  • int cbSize
    Set this to the size of the structure.
  • int iPartId
    The part to paint. Defined parts are:
CUSTOMPART_FDB_CLOSE
CUSTOMPART_PLAY
CUSTOMPART_PAUSE
CUSTOMPART_STOP
CUSTOMPART_SPEAKERparam is the volume %, determines how many waves are drawn faded vs full.
CUSTOMPART_SPEAKERMUTEDcol is the color of the speaker itself; col2 is the color of the 'x'.
CUSTOMPART_VOLUMESLIDERparam is the volume %, determines how much of the slider is filled. col = background, col1 = frame, col2 = fill.
CUSTOMPART_FULLSCREEN
CUSTOMPART_FULLSCREENRESTORE
CUSTOMPART_CHECK
CUSTOMPART_CROSS
CUSTOMPART_WINDOWLINK
CUSTOMPART_LOOP_ON
CUSTOMPART_LOOP_OFF
  • COLORREF crCol
  • COLORREF crCol2
  • COLORREF crCol3
  • BYTE bAlpha
  • RECT rc
  • DWORD_PTR param
  • int iRotate

This function was added in Directory Opus 13.