News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

ToolTip Icon

Started by bomz, December 10, 2012, 04:50:41 AM

Previous topic - Next topic

bomz


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

jj2007

I think it's a bot. The real bomz was a really friendly guy, and had funny icons all over the place ::)

bomz


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

dedndave

you need to look at tooltip styles and messages   :P

alas - MSDN seems to be down at the moment

bomz

I read msdn. It's example not working. I find one forum where C programmers says about manifests(?) and SetWindowTheme

dedndave

this is from the community content on the TOOLINFO structure page...

QuoteFor _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

http://s40.radikal.ru/i090/1212/99/1c3083ccbc81.png

I try this just now

jj2007

Welcome back, bomz :t

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


dedndave

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

any masm half year long
OK

hfheatherfox07

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

Quote from: jj2007 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 ::)

They even stole Bomz avatar too.

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

hfheatherfox07

@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

I add avatar with third post