Welcome to Dream.In.Code
Click Here
Getting C# Help is Easy!

Join 117,284 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 2,327 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



balloon of tray Icon not coming on the head of Icon

 
Reply to this topicStart new topic

balloon of tray Icon not coming on the head of Icon

nileshdeokar
post 8 Jul, 2008 - 11:30 PM
Post #1


New D.I.C Head

*
Joined: 8 Jul, 2008
Posts: 2

CODE

public void ShowBalloon(uint currentThreadID,uint iconId, string balloonTitle, string balloonText, uint balloonTimeout,NotifyCommand notifyCommand)
        {
            // find notify window
            m_foundNotifyWindow = false;
            EnumThreadWndProc enumThreadWndProc = new EnumThreadWndProc(FindNotifyWindowCallback);            
            EnumThreadWindows(currentThreadID, enumThreadWndProc, 0);
            if(m_foundNotifyWindow)
            {
                // show the balloon
                NotifyIconData notifyIconData = new NotifyIconData();
                notifyIconData.cbSize = (System.UInt32)System.Runtime.InteropServices.Marshal.SizeOf(typeof(NotifyIconData));
                notifyIconData.hWnd = m_notifyWindow;
                notifyIconData.uID = iconId;
                notifyIconData.uFlags = NotifyFlags.Info;
                notifyIconData.uTimeoutOrVersion = balloonTimeout;
                notifyIconData.szInfo = balloonText;
                notifyIconData.szInfoTitle = balloonTitle;
                Shell_NotifyIcon(notifyCommand, ref notifyIconData);
            }
        }
and calling as

m_notifyIcon.ShowBalloon(SDManagerProxy.GetCurrentThreadId(),0,"Exit..","Message",FrmStatusInformation.BALLOON_TIMEOUT,NotifyCommand.SetFocus);

User is offlineProfile CardPM

Go to the top of the page


gabehabe
post 9 Jul, 2008 - 04:45 AM
Post #2


T3H R0XX0R!

Group Icon
Joined: 6 Feb, 2008
Posts: 3,327



Thanked 67 times

Dream Kudos: 2100

Expert In: (X)HTML, CSS, Batch Scripting, C, C++

My Contributions


First off, welcome to </dream.in.code> smile.gif

Second, please post in the correct forum... there is a dedicated C# forum smile.gif

Third, please don't double post (deleted)

Moved.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/6/08 10:56PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month