Skip to content

Commit 4c1b10d

Browse files
committed
#124 Allow processing LOCATIONCHANGE events
1 parent 0082e04 commit 4c1b10d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Source/ExcelDna.IntelliSense/UIMonitor/WinEvents.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ bool IsSupportedWinEvent(WinEvent winEvent)
219219
winEvent == WinEvent.EVENT_SYSTEM_MOVESIZESTART || // Only for the on-demand hook
220220
winEvent == WinEvent.EVENT_SYSTEM_MOVESIZEEND || // Only for the on-demand hook
221221
winEvent == WinEvent.EVENT_OBJECT_SELECTION || // Only for the PopupList
222+
winEvent == WinEvent.EVENT_OBJECT_LOCATIONCHANGE ||
222223
winEvent == WinEvent.EVENT_SYSTEM_CAPTURESTART;
223224
}
224225

Source/ExcelDna.IntelliSense/UIMonitor/WindowWatcher.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ internal WindowChangedEventArgs(IntPtr windowHandle, WinEventHook.WinEvent winEv
6969
case WinEventHook.WinEvent.EVENT_OBJECT_FOCUS:
7070
Type = ChangeType.Focus;
7171
break;
72+
case WinEventHook.WinEvent.EVENT_OBJECT_LOCATIONCHANGE:
73+
Type = ChangeType.LocationChange;
74+
ObjectId = ChangeObjectId.Caret;
75+
break;
7276
case WinEventHook.WinEvent.EVENT_SYSTEM_MOVESIZEEND:
7377
Type = ChangeType.LocationChange;
7478
break;

0 commit comments

Comments
 (0)