11-15-2022, 06:07 PM
I've played with it a little as well. I think I've got it working, more or less, but there's still no printing of the "menu" icon in the title bar. Instead, it does a substitution as shown below:
All that effort just to get "=Foo" to display!
Code: (Select All)
DECLARE DYNAMIC LIBRARY "user32"
FUNCTION SetWindowTextW (BYVAL Handle AS _OFFSET, title$)
END DECLARE
'_TITLE CHR$(240) + "Foo"
i% = _MAPUNICODE(240)
t$ = MKI$(i%)
PRINT t$ 'this is chr$(34) and "a", but they need to be reversed to do anything. Endianness issue, I guess?
SLEEP 'so we have time to make certain that the _WINDOWHANDLE is properly assigned to this window
title$ = "a" + CHR$(34) + "F" + CHR$(0) + "o" + CHR$(0) + "o" + CHR$(0) + CHR$(0)
result = SetWindowTextW(_WINDOWHANDLE, title$) 'IF the line with _TITLE is uncommented above, this does nothing.
SLEEP
All that effort just to get "=Foo" to display!