Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Mouse over the icon at the bottom of the screen
Widget with text prompts can be displayed
What class or interface to use, Show this widget.use qt or mfc

What I have tried:

No related class was found for how to display the prompt message
Posted
Updated 27-Oct-20 23:09pm
v2
Comments
OriginalGriff 27-Oct-20 4:15am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. You are going to have to give us a lot more detail than that before we can even start to answer!

Use the "Improve question" widget to edit your question and provide better information.
ZhuTaiYong 28-Oct-20 4:46am    
thank you very much ,i think that using DwmSetIconicLivePreviewBitmap that is a good idea . windows taskbar ,like Google browser software, you move mouse to software icon, you can see Text Tips.
Shao Voon Wong 27-Oct-20 5:14am    
Do you mean tooltip?
ZhuTaiYong 28-Oct-20 4:37am    
不是,鼠标移到任务栏上的程序图标时,应该在程序缩略图上方有文字提示,比如 Google 浏览器

Your question isnt clear enough, but I guess thate you can use DwmSetIconicLivePreviewBitmap or some Tooltip.
 
Share this answer
 
Comments
ZhuTaiYong 28-Oct-20 4:48am    
thanks you are a very good man
Ah! That makes more sense!
The "bottom of the screen" is called the "Taskbar", and you can "enhance" you app on it with the NotifyIcon: NotifyIcon Class (System.Windows.Forms) | Microsoft Docs[^]
Drag one from your toolbox onto your form, and give it an appropriate name: "appIcon" in my case. You can then set it's properties dynamically in your app:
C#
/// <summary>
/// Restore size and location (if the user doesn't
/// override it)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void FrmMain_Load(object sender, EventArgs e)
    {
    if ((ModifierKeys & Keys.Shift) == 0)
        {
        this.LoadLocation();
        }
    appIcon.BalloonTipIcon = ToolTipIcon.Info;
    appIcon.BalloonTipText = "Waiting for URL";
    appIcon.BalloonTipTitle = "Load image from URL";
    appIcon.Text = "Waiting for image URL ...";
    // appIcon.ShowBalloonTip(2000);            // Call this to display a "bottom left" notification.
    }
Have a play with it, you'll get the idea!
 
Share this answer
 
Comments
ZhuTaiYong 29-Oct-20 3:04am    
thank you very mush
OriginalGriff 29-Oct-20 3:20am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900