SetWinBackgroundColor

Syntax:

SetWinBackgroundColor( hWnd, color )

Parameters:

hWnd

=

handle of the window ( WindowID() )

color

=

RGB-Color: RGB(r,g,b)


Description:

Set the Background-Color for the window.


Example:

  hWnd    = OpenWindow(0, x, y, w, h, #WS_POPUP, "Window Name")
  SetWinBackgroundColor(hWnd, $FFFFFF)

  hWnd    = OpenWindow(0, x, y, w, h, #WS_POPUP, "Window Name")
  SetWinBackgroundColor(hWnd, RGB($FF,$FF,$00))

  ; may be useful for WinXP
  hWnd    = OpenWindow(0, x, y, w, h, #WS_POPUP, "Window Name")
  SetWinBackgroundColor(hWnd, GetSysColor_(#COLOR_BTNFACE))


Supported OS:   Windows