hwnd (HWND) - input

      Window handle where drawing is taking place.

    hps (HPS) - input

      Presentation-space handle.

    pcclr (PULONG) - output

      Number of physical palette entries changed.

      A value of zero indicates that the palette was successfully realized without changing any entries in the display hardware physical table. A non-zero value gives the number of hardware table entries that were changed and indicates that a WM_REALIZEPALETTE message has been posted to all other applications.

    lChanged (LONG) - returns

      Number of colors remapped.

      PAL_ERROR

        Error occurred
      Otherwise
        Number of colors that are remapped. This includes both animating and non-animating indexes that have matches in the physical palette. This information can be used to determine whether the window needs repainting.

        Note that this information may already be out of date if there are other palette-using applications running.


      [Back] [Next]