EnableExplicit

Procedure TreeView_Node_SetMask(hTreeview.i, hNode.i, Mask.i, State.i)
  Define.TVITEMEX xType1

  With xType1
    \hItem = hNode
    \mask = $8
    \stateMask = Mask
    \state = State
    EndWith
  CompilerIf #PB_Compiler_Unicode
    SendMessage_(hTreeview, $113F, 0, @xType1)
    CompilerElse
    SendMessage_(hTreeview, $110D, 0, @xType1)
    CompilerEndIf
  EndProcedure
; IDE Options = PureBasic 5.11 (Windows - x64)
; CursorPosition = 16
; Folding = -
; Executable = CleanupEmptyDirs.exe
; CommandLine = "T:\GameMusicRipp\2011\Alien Breed 2 - Assault"
; CompileSourceDirectory