Announcement

Collapse
No announcement yet.

Error in common control include file - a ListView wrapper function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tom Hanlin
    replied
    Righto. I'll see that gets updated.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Error in common control include file - a ListView wrapper function

    The code below has one error in the wrapper function:

    Code:
    %LVM_SETBKCOLOR         = (%LVM_FIRST + 1)
    
    FUNCTION ListView_SetBkColor(BYVAL hWnd AS LONG, clrBk AS LONG) AS LONG
       FUNCTION = SendMessage(hWnd, %LVM_SETBKCOLOR, 0, VARPTR(clrBk))
    END FUNCTION
    The line :
    Code:
       FUNCTION = SendMessage(hWnd, %LVM_SETBKCOLOR, 0, VARPTR(clrBk))
    should be:

    Code:
       FUNCTION = SendMessage(hWnd, %LVM_SETBKCOLOR, 0, clrBk)
    The error won't cause a GPF, but will give you the wrong color.



    ------------------
Working...
X