Re: LVM_GETBKCOLOR returns -1

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Gili (sittingduck_at_bbs.darktech.org)
Date: 04/26/04


Date: 26 Apr 2004 15:42:09 -0700

Timo Kunze <TKunze71216@gmx.de> wrote in message news:<OFqO2h7KEHA.3944@tk2msftngp13.phx.gbl>...
> The SysListView32 class supports background images, so it's probably the
> listview that is drawing the wallpaper.
> Also MSDN says the following for LVM_SETBKCOLOR:
> Background color to set or the CLR_NONE value for no background color.
> List-view controls with background colors redraw themselves
> significantly faster than those without background colors.
>
> HTH
> Timo

Thanks Timo,

   FYI: What I actually saw is that unless LVM_GETBKCOLOR returned a
solid color (i.e. anything but -1) then the image specified by
LVM_GETBKIMAGE would keep on getting clobbered by the Program Manager
background. When LVM_GETBKCOLOR returned 1 (black), the image
specified by LVM_GETBKIMAGE would draw just fine.

Gili



Relevant Pages

  • Re: LVM_GETBKCOLOR returns -1
    ... listview that is drawing the wallpaper. ... Also MSDN says the following for LVM_SETBKCOLOR: ... Background color to set or the CLR_NONE value for no background color. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: ASCII-Paint version 0.1 released
    ... It is a drawing ... darken current foreground / background color by a small amount ... foreground color (as png) and text (as... ...
    (rec.games.roguelike.development)
  • Re: Desktop Background color via GPO
    ... >I am unable to find a way to assign desktop (background color) to a user via ... I can easily assign wallpaper, ... >student desktops have no icons, this would be a great way for teachers to ... You can create a custom ADM file to set Background, a REG_SZ data type to the R G B value at ...
    (microsoft.public.win2000.group_policy)
  • Re: ASCII-Paint version 0.1 released
    ... It is a drawing ... darken current foreground / background color by a small amount ... avoid having 8 shortcuts, and add another shortcut to switch primary/ ... foreground color (as png) and text (as... ...
    (rec.games.roguelike.development)
  • Re: Costomizing background issues...
    ... That color is automatically adjusted according to wallpaper. ... put a background color. ... Right click desktop> Arrange icons by> Lock web items on desktop ... shortcuts and stuff like that) ...
    (microsoft.public.windowsxp.general)