ShowBalloonTip stops working in windows 10

Вадим Подгорный 41 Reputation points
2022-07-03T15:07:38.9+00:00

The CEdit MFC class has a ShowBalloonTip function.
It is triggered, for example, with the ES_NUMBER flag, showing a warning.
After installing updates or some applications, I don't know for sure, this function stops working. BalloonTip stops appearing.
I have already reinstalled the system twice because of this.
Please tell me how to fix this glitch without reinstalling windows?

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

3 answers

Sort by: Most helpful
  1. RLWA32 49,651 Reputation points
    2022-07-03T19:34:15.697+00:00

    Cedit::ShowBalloonTip worked for me - Win 10 21H1 and VS2019 using an MFC dialog application created by the MFC App template.

    void CEditBalloonDlg::OnChangeEdit2()  
    {  
        // TODO:  If this is a RICHEDIT control, the control will not  
        // send this notification unless you override the CDialogEx::OnInitDialog()  
        // function and call CRichEditCtrl().SetEventMask()  
        // with the ENM_CHANGE flag ORed into the mask.  
      
        // TODO:  Add your control notification handler code here  
        m_Edit2.ShowBalloonTip(_T("Change Tip"), _T("Edit control changed"), TTI_INFO);  
    }  
      
      
    void CEditBalloonDlg::OnSetfocusEdit1()  
    {  
        // TODO: Add your control notification handler code here  
        m_Edit1.ShowBalloonTip(_T("Focus Tip"), _T("Edit control got Focus"), TTI_INFO_LARGE);  
    }  
      
    

    217172-change.png

    217107-focus.png


  2. YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
    2022-07-04T02:29:16.197+00:00

    Hi @Вадим Подгорный ,

    In win10, I suggest you try this method: go to Settings > System > Notifications & actions, and turn on "Get notifications from apps and other senders".

    217185-7868.png

    Best regards,

    Elya


    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.


  3. Вадим Подгорный 41 Reputation points
    2022-07-04T15:12:40.14+00:00

    After thinking about it logically, I assumed that many people should have had such a problem already.
    And I found a solution on the Internet, where one smart person suggested it, thanks to him.

    1.Open regedit.exe

    2.Navigate to HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced

    3.Set (or add) EnableBalloonTips (as REG_DWORD) and set value to 1

    4.Reboot

    The application that I am writing at the moment actively uses hints.
    It's a pity that Microsoft has complicated this task for me.
    You will have to write an additional module to control the registry, ask the user to restart the computer....

    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.