News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Balloon tool tip help

Started by bloodhound, April 30, 2006, 01:34:46 AM

Previous topic - Next topic

bloodhound

anyone has a sample source code or example???

anon


bloodhound

thanks anon!

but unfortunately, this is not it..

i was hoping for a tray icon balloon tip, not the standard balloon tip..


bloodhound

WHOOOA!! I FINALLY GOT IT!!!!  :dance:

Got some clue on the net, but its kinda incomplete.. ::)

So special thanks to zcoder for the added balloon tip symbols/definitions  :thumbu

Finally, I / we got to contribute here at the MASM community!  :dance:


i updated the WINDOWS.INC v1.25a --> v1.28a


i got a compile error if i modified the v1.26e by Jibz, so we or somebody do that later..

enjoy!  :wink

[attachment deleted by admin]

hutch--

bloodhound,

Do yourself a favour, download the current version of masm32, the one you are using in years old.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

bloodhound

yes hutch, but the problem of this is missing definitions in the include files..
are yours updated??  ::)

thats why im asking first for help in this forum and im sure most of the members here are updated with
their masm versions, but unfortunately, yet to no avail.. cant seem to solve this tiny problem,

so i search the net for some solutions...

hope this is okay...

bloodhound

#6
and i cant seem to find the right solution in this forum.. right??

so luckily and some sweat, i got it and made my own..

yes, will update to v9 but of course, first i ask for help and of course
(most of us here are updated with their masm version!) but my point is, why is this not yet
being sampled and i got some feedback of missing symbols on other users???
and not the right examples. right??

Quote
bloodhound,
When I read the MSDN I did not realize that this stuff is missing from
windows.inc and I tried for over 24 Hours to create a example on
using baloon tooltips, but I could not get it to work. So far to
date this is the only thing I have found in the MSDN that I can't
get to work.

I am sure I will find other things in the MSDN that I can't understand.
SHELLICONDATA has been inlarged with other items in it and some
equates have been add like:
NIF_INFO equ 10h
NIN_BALLOONSHOW equ WM_USER+2
NIIF_INFO equ 1
NOTIFYICON_OLDVERSION equ 0;
NOTIFYICON_VERSION equ 3;

I will have to work on this for awhile to figure this out.
I am adding all this to my windows.inc project as well.

This is the same problem I had with making a web cam
example, but I got that to work so I hope to have this figured out too.
Zcoder....


Thanks zcoder... you're a big help! :thumbu :thumbu :thumbu


hutch--, i hope you understand what i mean.. thanks!  :U


**Okay, i maybe out-to-date with the windows.inc version, but i dont see anyone here
who got a working sample of this tiny problem... so i did it myself along with the help of
other members here!  :wink

well let's see the version 9 windows.inc...


maybe i should compile an updated samples/tutorials for masm beginners like me... hmmm..  :wink

zcoder

bloodhound,
I ran the example you posted and I waited for over 5 minute
for a ballon popup, and I even place the mouse over the trayicon
to see if a balloon would apear, none did.

So I looked at the code and it is done the way I had tried it too.
I am using XP PRO, and I am wondering if their maybe something
that has to be added for different Versions such as 2000, NT, XP, XP PRO????

This is puzzleing me ::)

Zcoder....
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

bloodhound

@zcoder

Wait just click on the tray icon not mouse over! it works fine on my Windows ME, and XP PRO SP1 dual boot system...

here's my screenshot on my ME...



BTW, Thank you so much for the big help on this!!  :U You're a gr8 guy!! :clap:


zcoder

bloodhound,
Your right it does when you click on it, and I ran mine and it too
does that. COOL, now I have to see what I have to do to make one
that will apear when I want it to for a time I want it too show.

COOL,LOL

Zcoder....
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

zcoder

OK, I know now how to make it pop up automaticaly
for a period of time like this:



          mov note.cbSize,sizeof NOTIFYICONDATA
          push hWin
          pop note.hwnd
          mov note.uID,IDI_TRAY
          mov note.uFlags,NIF_ICON+NIF_MESSAGE+NIF_INFO+NIF_TIP
          mov note.uCallbackMessage,WM_SHELLNOTIFY
          mov eax,hIcon
          mov note.hIcon,eax
          mov note.uTimeout,100
          mov note.uVersion,NOTIFYICON_VERSION
          mov note.dwInfoFlags,NIIF_INFO         
          invoke lstrcpy,addr note.szTip,addr szDisplayName
          invoke lstrcpy,addr note.szInfo,addr szMyBallonMessage
          invoke lstrcpy,addr note.szInfoTitle,addr szMyBalloonTitle
          invoke Shell_NotifyIcon,NIM_ADD,addr note


Zcoder....
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

zcoder

Oh, and for those using a windows.inc file that does not have all
the stuff needed to do this here is what you need in the windows.inc file.



NIF_INFO             equ 10h
NIF_MESSAGE          equ 1
NIF_ICON             equ 2
NOTIFYICON_VERSION   equ 3
NIF_TIP              equ 4
NIM_SETVERSION       equ 4
NIM_SETFOCUS         equ 3
NIIF_INFO            equ 1
NIIF_WARNING         equ 2
NIIF_ERROR           equ 3

NIN_BALLOONSHOW      equ WM_USER+2
NIN_BALLOONHIDE      equ WM_USER+3
NIN_BALLOONTIMEOUT   equ WM_USER+4
NIN_BALLOONUSERCLICK equ WM_USER+5
NIN_SELECT           equ WM_USER+0
NINF_KEY             equ 1
NIN_KEYSELECT        equ NIN_SELECT or NINF_KEY
 
NIN_BALLOONSHOW      equ WM_USER+2
NIN_BALLOONHIDE      equ WM_USER+3
NIN_BALLOONTIMEOUT   equ WM_USER+4
NIN_BALLOONUSERCLICK equ WM_USER+5
NIN_SELECT           equ WM_USER+0
NINF_KEY             equ 1
NIN_KEYSELECT        equ NIN_SELECT or NINF_KEY


NOTIFYICONDATAA STRUCT
  cbSize                 DWORD      ?
  hwnd                 DWORD      ?
  uID                    DWORD      ?
  uFlags                 DWORD      ?
  uCallbackMessage  DWORD      ?
  hIcon               DWORD      ?
  szTip                BYTE       128 dup(?)
  dwState           DWORD      ?
  dwStateMask    DWORD      ?
  szInfo              BYTE       256 dup(?)
  union
                       uTimeout      DWORD      ?
                      uVersion      DWORD      ?
  ends
  szInfoTitle      BYTE       64 dup(?)
  dwInfoFlags    DWORD      ?
NOTIFYICONDATAA ENDS


NOTIFYICONDATA  equ  <NOTIFYICONDATAA>



Zcoder....
Back in 1979, My computer ran so fine.
And there was no such thing,
As a Microsoft Crashed Machine.
http://zcoder.110mb.com
http://www.dietzel.com/partner/idevaffiliate.php?id=345_6  Free Domain Names

bloodhound

Well done Z!  :thumbu now, i saved time to program that timer show thingy!

thanks a lot for the added code timer

well, you know about the WINDOWS.INC file, i already modified it and its included
in the balloon zip file i attached. i dont know if the 1 that comes wth masm9 has this
defs and symbols thats why im confused that nobody here gets this example before (no bragging issues here) or gave the wrong example, so i tried to work this thing out.. thats why its a big deal about updating the windows.inc..
i dont know what hutch is talking about??..

Quote

Do yourself a favour, download the current version of masm32, the one you are using in years old.


if i downloaded v9 and i still
dont get this balloon thing to work or it is still missing then why should i
update to 9 in the 1st place. im happy with v7, works smoothly on
the projects i want to code  :bg

bloodhound

Yes, i missed the NIN_BALLOON defs.. great you have it!

how about this?


TPM_HORPOSANIMATION   equ 400h
TPM_HORNEGANIMATION   equ 800h
TPM_VERPOSANIMATION   equ 1000h
TPM_VERNEGANIMATION   equ 2000h
TPM_NOANIMATION        equ 4000h
TPM_LAYOUTRTL          equ 8000h


this is for the Trackpopupmenu command, is this already included in your inc file? v9?

somebody has to post the latest version of windows.inc here, so no one is confused and
will know what are they talking about...

And the MASM version comparison, so they will know if they need the current one or
stick to their old version!

PBrennick

bloodhound,
those equates are in there.  Now, listen to me, you are a good guy and a lot of fun to work with but you are being just plain silly here.  I understant VERY well your hesitancy to upgrade a well wrking version but this is just the type of problem you will experience - you do not get the benefit of Hutch's hard work.

The version 7.0 version of masm32, rename it masm70.  Download and install version 9.0; after installing it rename it masm90.  Now, all you have to do is alter your batch files accordingly.  You can parellel test the two versions t your heart's content.  I have a masm70, masm80, masm90 and a masm16.

EDIT: I am attaching the 9.0 version of windows.inc though I do not feel it is neceesary but if it will re-assure you...  And if you should find a problem ...

Have fun,
Paul


[attachment deleted by admin]
The GeneSys Project is available from:
The Repository or My crappy website