WindowID not the hwnd of the SciTE window?

27 views
Skip to first unread message

bluelake

unread,
Apr 30, 2013, 10:00:12 AM4/30/13
to scintilla...@googlegroups.com
I'm posting this in case I'm doing something obviously wrong or am obviously misunderstanding something, but SciTE's WindowID property does not seem to match the hwnd I am getting through other means for the window.

I'm using simple LUA code to pull the value of the WindowID property:

    print( '<' .. props['FilePath'] .. '><' .. props['WindowID'] .. '>' )

This gives me something like 3083060.

When I use WinSpy++ to get the hwnd of the editor window, I get something like 0x2e0962 (ie decimal 3017058), which invariably does not match the value from the SciTE property. I've also done a quick AutoHotkey script, and it agrees consistently with WinSpy++, not WindowID.

Am I misunderstanding something? Is WindowID not the hwnd of the SciTE window? I'm running on a 64-bit Win7 machine, though my understanding is hwnds are consistent between 32-bit and 64-bit systems.

Thanks in advance if anyone sees what I'm missing!
--John


Neil Hodgson

unread,
May 1, 2013, 12:27:00 AM5/1/13
to scintilla...@googlegroups.com
John:

> I'm posting this in case I'm doing something obviously wrong or am obviously misunderstanding something, but SciTE's WindowID property does not seem to match the hwnd I am getting through other means for the window.

Don't use those means for discovering the director interface since its a non-visible window. Use the WindowID property or by broadcasting the "SciTEDirectorInterface" message as explained on
http://www.scintilla.org/SciTEDirector.html

Neil

Reply all
Reply to author
Forward
0 new messages