Announcement

Collapse
No announcement yet.

WIN32API.INC problems

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

  • WIN32API.INC problems

    May be it is a little mistake... Inside DRAWITEMSTRUCT the itemID member is declared as DWORD. On a WM_DRAWITEM message
    ...for an empty list box or combo box, this member can be -1...
    ------------------
    Rgds, Aldo

  • #2
    according to pb people, we should use &hffffffff??? instead of -1
    for compare, since dword is correct. typical ms logic, if you put
    -1 into dword it comes out as &hffffffff??? sigh..

    see discussion in http://www.powerbasic.com/support/pb...ead.php?t=3554


    ------------------

    Comment


    • #3
      Borje,

      Thanks for the reply. The problem is one must remember not to compare something < 0...

      ------------------
      Rgds, Aldo

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎