Browse Source

Fixed TreeView node redraw (#69)

The [+] button next to treeview nodes didn't draw properly in MaxIDE when parent node expanded, this seems to fix the issue.
Carl Husberg 2 years ago
parent
commit
f566d4a734
1 changed files with 1 additions and 1 deletions
  1. 1 1
      win32maxguiex.mod/win32maxguiex.bmx

+ 1 - 1
win32maxguiex.mod/win32maxguiex.bmx

@@ -4833,7 +4833,7 @@ Type TWindowsTreeNode Extends TGadget
 		If _item = Byte Ptr(TVI_ROOT) Then
 		If _item = Byte Ptr(TVI_ROOT) Then
 			InvalidateRect _tree, Null, True
 			InvalidateRect _tree, Null, True
 		Else
 		Else
-			Local Rect[] = [Int(_item),0,0,0]
+			Local Rect:Long[] = [Long(_item),0,0,0]
 			If SendMessageW(_tree, TVM_GETITEMRECT, False, LParam Byte Ptr Rect) Then
 			If SendMessageW(_tree, TVM_GETITEMRECT, False, LParam Byte Ptr Rect) Then
 				InvalidateRect _tree, Rect, True
 				InvalidateRect _tree, Rect, True
 			EndIf
 			EndIf