I have tried using one of the solution I found over Code Project where I found the following function but placing this function in my installscript doesn't help. I am not sure whether I would have to write code in C# and then call the dll from my installscript.
Any kind of help will be highly appreciated.
What I have tried:
This is the function I wrote in one of the installscript file (particular to one of my custom dialog where I want the balloon for an edit control).
#define EM_SHOWBALLOONTIP 0x1503
#define EM_HIDEBALLOONTIP 0x1504
#define TTI_NONE 0
#define TTI_INFO 1
#define CP_ACP 0 // default to ANSI code page
#define MB_PRECOMPOSED 0x00000001 // use precomposed chars
typedef EDITBALLOONTIP
begin
number cbStruct;
number pszTitle;
number pszText;
number ttiIcon;
end;
prototype number ShowBalloonTip(HWND,string,string);
function number ShowBalloonTip(hWndCtrl, szTitle, szMsg)
EDITBALLOONTIP baloon;
string szBalTitleBuf[MAX_PATH], szBalTextBuf[MAX_PATH];
pointer pBalTitleBuf, pBalTextBuf;
begin
pBalTextBuf = &szBalTextBuf;
pBalTitleBuf = &szBalTitleBuf;
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED,&szMsg,
StrLengthChars(szMsg)+1, pBalTextBuf, MAX_PATH);
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED,&szTitle,
StrLengthChars(szTitle)+1, pBalTitleBuf, MAX_PATH);
baloon.cbStruct = SizeOf(baloon);
baloon.pszText = pBalTextBuf;
baloon.pszTitle = pBalTitleBuf;
baloon.ttiIcon = TTI_INFO;
return SendMessage(hWndCtrl,EM_SHOWBALLOONTIP,0,&baloon);
end;