Start TabTip in hidden mode. Not appears when ShellExecute

milistefanos 21 Reputation points
2022-01-12T09:01:19.92+00:00

How can I start TabTip.exe without Keyboard appears on screen immediately?
I want start TabTip.exe running on backround and appears when focus on an edit area.

I tryied
ShellExecute(NULL, L"open", L"TabTip.exe", NULL, NULL, SW_HIDE);
but the same result as with SW_SHOW parameter.

After calling ShellExecute, TabTip appears on screen.

Developer technologies C++
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2022-01-13T02:32:59.637+00:00

    Hi, @milistefanos

    The method in this thread still works. You need to start tabtip.exe when OnSetFocus and close it when OnKillfocus.
    Sample snippet:

    void CMFCApplication1Dlg::OnSetfocusEdit1()  
    {  
    	HWND TabTip = ::FindWindow(L"IPTip_Main_Window", 0);  
    	if (!TabTip)  
    	{  
    		ShellExecute(NULL, L"open", L"C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe", NULL, NULL, SW_SHOW);  
    	}  
    	else  
    	{  
    		TCHAR a[256] = _T("TabTip.exe");  
    		DWORD b = 0;  
    		GetPidByProcessName(a, &b);  
    		KillProcess(b);  
    		ShellExecute(NULL, L"open", L"C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe", NULL, NULL, SW_SHOW);  
    	}  
    	// TODO: Add your control notification handler code here  
    }  
      
      
    void CMFCApplication1Dlg::OnKillfocusEdit1()  
    {  
    	HWND hWnd = ::FindWindow(_T("IPTIP_Main_Window"), _T(""));  
    	::PostMessage(hWnd, WM_SYSCOMMAND, SC_CLOSE, 0);  
    	// TODO: Add your control notification handler code here  
    }  
    

    164565-gif1.gif
    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Shaik Rizwan 0 Reputation points
    2024-12-10T10:11:30.3633333+00:00

    Can any please help me. I need to detect if the user closed the keyboard. By close btn instead of focus

    0 comments No comments

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.