TSF/IME question. (programming issue)

HyungJu Lee 0 Reputation points
2024-09-03T06:20:17.2466667+00:00

I am currently developing a ThirdParty Hangul IME using Microsoft text service framework (aka TSF).

I have one problem, which I am not able to solve.

I have 2 questions.

  1. TSF related question. ITfLangBarItemButton::InitMenu(ITfMenu *pMenu) is not called at all. (Of course, TF_LANGBARITEMINFO.dwStyle contains TF_LBI_STYLE_BTN_MENU). I wonder if this is intentional behavior.
  2. the attached picture shows the popup menu that appears when you right-click on the LanguageBar Button of the Windows default Hangul IME. (I'm guessing this Popup menu is the WinUI3 menuFlyout) Which process is responsible for displaying this menu on the screen? I would like to implement a similar popup menu in my IME. I am assuming that this is done in a windowless background process that displays the menuFlyout on right-click on LanugageBar button. However, I have realized that it is impossible to display the WinUI3 menuFlyout in a windowless background process. Which programming model should I apply?

PS.
I can't find the appropriate tag, so if this is the wrongime_menu.png, please forward it to the appropriate person.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,718 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,653 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,898 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.