Announcement

Collapse
No announcement yet.

Error in common control include file - a ListView wrapper function

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

  • 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.



    ------------------
    Chris Boss
    Computer Workshop
    Developer of "EZGUI"
    http://cwsof.com
    http://twitter.com/EZGUIProGuy

  • #2
    Righto. I'll see that gets updated.

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

    Comment

    Working...
    X