Beispiel #1
0
 def SetInsertMark(self, treeItem, after):
     if treeItem:
         lParam = long(treeItem.m_pItem)
         if self.insertionMark == (lParam, after):
             return
         # TVM_SETINSERTMARK = 4378
         SendMessageTimeout(self.hwnd, 4378, after, lParam, 1, 100, None)
         self.insertionMark = (lParam, after)
     else:
         self.ClearInsertMark()
Beispiel #2
0
 def ClearInsertMark(self):
     SendMessageTimeout(self.hwnd, 4378, 0, long(0), 1, 100, None)
     self.insertionMark = None