Author Topic: ToolTip Icon  (Read 15128 times)

bomz

  • Guest
ToolTip Icon
« on: December 10, 2012, 04:50:41 AM »

How change this icon for my own?
How add X close button to tooltip?
How use SetWindowTheme?
Help me please.

jj2007

  • Member
  • *****
  • Posts: 10087
  • Assembler is fun ;-)
    • MasmBasic
Re: ToolTip Icon
« Reply #1 on: December 10, 2012, 05:42:47 AM »
I think it's a bot. The real bomz was a really friendly guy, and had funny icons all over the place ::)

bomz

  • Guest
Re: ToolTip Icon
« Reply #2 on: December 10, 2012, 05:55:48 AM »

It's me. I restore password and can't logon.

dedndave

  • Member
  • *****
  • Posts: 8825
  • Still using Abacus 2.0
    • DednDave
Re: ToolTip Icon
« Reply #3 on: December 10, 2012, 06:00:00 AM »
you need to look at tooltip styles and messages   :P

alas - MSDN seems to be down at the moment

bomz

  • Guest
Re: ToolTip Icon
« Reply #4 on: December 10, 2012, 06:03:50 AM »
I read msdn. It's example not working. I find one forum where C programmers says about manifests(?) and SetWindowTheme

dedndave

  • Member
  • *****
  • Posts: 8825
  • Still using Abacus 2.0
    • DednDave
Re: ToolTip Icon
« Reply #5 on: December 10, 2012, 06:09:25 AM »
this is from the community content on the TOOLINFO structure page...

Quote
For _WIN32_WINNT  > 0x0501, you must set 'cbSize' to TTTOOLINFOA_V2_SIZE (instead of sizeof(TOOLTIPINFO))
or include the appropriate version of Common Controls in the manifest. Otherwise the tooltip won't be displayed.

comment by Jefeh1

the structure is defined as follows:

typedef struct {
  UINT      cbSize;
  UINT      uFlags;
  HWND      hwnd;
  UINT_PTR  uId;
  RECT      rect;
  HINSTANCE hinst;
  LPTSTR    lpszText;
#if (_WIN32_IE >= 0x0300)
  LPARAM    lParam;
#endif
#if (_WIN32_WINNT >= Ox0501)
  void      *lpReserved;
#endif
} TOOLINFO, *PTOOLINFO, *LPTOOLINFO;

bomz

  • Guest
Re: ToolTip Icon
« Reply #6 on: December 10, 2012, 06:13:55 AM »

jj2007

  • Member
  • *****
  • Posts: 10087
  • Assembler is fun ;-)
    • MasmBasic
Re: ToolTip Icon
« Reply #7 on: December 10, 2012, 06:15:25 AM »
Welcome back, bomz :t

Can't find what I was looking for - tooltips with bold titles - but CodeProject has something.

bomz

  • Guest
Re: ToolTip Icon
« Reply #8 on: December 10, 2012, 06:21:36 AM »

dedndave

  • Member
  • *****
  • Posts: 8825
  • Still using Abacus 2.0
    • DednDave
Re: ToolTip Icon
« Reply #9 on: December 10, 2012, 06:22:37 AM »
one thing i noticed...

when you create the tooltip, you provide a handle to a parent window, but do not specify WS_CHILD
from my experience, it is best to create the tooltip with HWND_DESKTOP (same as NULL) as the parent
and do not specify WS_CHILD

what we do not see is the manifest you are using
you probably want to specify common controls 6.0
but, according to the comment mentioned in my previous post, you may have
to check the OS to set a proper value for cbSize - not sure about that

bomz

  • Guest
Re: ToolTip Icon
« Reply #10 on: December 10, 2012, 06:27:42 AM »
any masm half year long
OK

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: ToolTip Icon
« Reply #11 on: December 10, 2012, 06:39:39 AM »
Hey bomz....Welcome back  :t
I posted such a source (not mine) on the old forum .....

This not only shows custom icon and close but it shows icon according to conditions .....connected or not connected
You will only see the not connected icon since I am only posting the part you need ...the whole thing is too big to upload ....I you want the whole software let me now and I will upload it off site


Here you go  :P

Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

Magnum

  • Member
  • *****
  • Posts: 2308
Re: ToolTip Icon
« Reply #12 on: December 10, 2012, 06:43:26 AM »
I think it's a bot. The real bomz was a really friendly guy, and had funny icons all over the place ::)

They even stole Bomz avatar too.

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

hfheatherfox07

  • Member
  • ***
  • Posts: 464
Re: ToolTip Icon
« Reply #13 on: December 10, 2012, 06:45:31 AM »
@bomz ....Get the whole source while it is up ...... :P

http://www.filesend.net/download.php?f=0dcbda22c9ed7c628ea1ce8a2531fc63
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

bomz

  • Guest
Re: ToolTip Icon
« Reply #14 on: December 10, 2012, 06:45:45 AM »
I add avatar with third post