Afficher une infobulles ?

Résolu
cs_mayti Messages postés 36 Date d'inscription samedi 2 octobre 2004 Statut Membre Dernière intervention 11 juin 2005 - 16 mai 2005 à 12:36
cs_mayti Messages postés 36 Date d'inscription samedi 2 octobre 2004 Statut Membre Dernière intervention 11 juin 2005 - 17 mai 2005 à 00:00
Salut.

je voudrais savoir comment afficher une infobulle après avoir réduit la
fenêtre dans le systray ? Et pouvoir creér une fonction du genre
Afficher_Infobulle(char*titre, char *title).



Merci.

3 réponses

cs_mayti Messages postés 36 Date d'inscription samedi 2 octobre 2004 Statut Membre Dernière intervention 11 juin 2005
17 mai 2005 à 00:00
Probléme résolu : j'ai du installer le sdk :



http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm



pour pouvoir compiler la source.
3
SnOOpss Messages postés 571 Date d'inscription samedi 3 avril 2004 Statut Membre Dernière intervention 5 décembre 2013
16 mai 2005 à 19:02
Tiens un exemple trouvé sur la msdn !!



hwndToolTips = CreateWindow(TOOLTIPS_CLASS,
NULL,
WS_POPUP | TTS_NOPREFIX | TTS_BALLOON,
0, 0,
0, 0,
NULL, NULL,
g_hinst,
NULL);
if (hwndTooltip)
{
// Do the standard ToolTip coding.
TOOLINFO ti;

ti.cbSize = sizeof(ti);
ti.uFlags = TTF_TRANSPARENT | TTF_CENTERTIP;
ti.hwnd = hwnd;
ti.uId = 0;
ti.hinst = NULL;
ti.lpszText = LPSTR_TEXTCALLBACK;

GetClientRect(hwnd, &ti.rect);
SendMessage(hwndToolTips, TTM_ADDTOOL, 0, (LPARAM) &ti );
}


cf http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/tooltip/usingtooltips.asp
0
cs_mayti Messages postés 36 Date d'inscription samedi 2 octobre 2004 Statut Membre Dernière intervention 11 juin 2005
16 mai 2005 à 20:01
Oui mais je n'y arrives pas comme ça :

TOOLTIPS_CLASS il ne c'est pas ce que c'est...

J'ai trouvé une source parfaite :

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8269&lngWId=3

Mais je n'arrives pas à la compiler :(
0
Rejoignez-nous