---
name: "SelectPalette"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SelectPalette"
---

# SelectPalette(3w)

## NAME

**SelectPalette** (GDI32.@)

## SYNOPSIS

HPALETTE SelectPalette\
  (\
   HDC      *hDC*,\
   HPALETTE *hPal*,\
   BOOL     *bForceBackground*\
  )

## PARAMS

*hDC* **\[In\]**  Handle of device context.

*hPal* **\[In\]**  Handle of logical color palette.

*bForceBackground* **\[In\]**  Foreground/background mode.

## DESCRIPTION

Selects logical palette into **DC**.

## RETURNS

**Success:** Previous logical palette

**Failure:** **NULL**

## IMPLEMENTATION

Declared in **"gdi\_private.h"**.

Implemented in **"dlls/gdi32/palette.c"**.

Debug channel **"palette"**.
