Hi,
I've created a Custom Balloon tool tip using the following
API's
in
C#
.
#region Static Extern Methods (API)
[DllImport("User32", SetLastError = true)]
internal static extern int GetClientRect(
int hWnd,
ref RECT lpRect);
[DllImport("User32", SetLastError = true)]
internal static extern int ClientToScreen(
int hWnd,
ref POINTAPI lpPoint);
[DllImport("User32", SetLastError = true)]
private static extern int ClientToScreen(
int hWnd,
ref RECT lpRect);
[DllImport("User32", SetLastError = true)]
internal static extern int SendMessage(
int hWnd,
int Msg,
int wParam,
IntPtr lParam);
[DllImport("user32.dll", SetLastError = true)]
internal static extern int SendMessage(
int hWnd,
int Msg,
int wParam,
int lParam);
[DllImport("user32.dll", SetLastError = true)]
internal static extern int SendMessage(
int hWnd,
int Msg,
int wParam,
TOOLINFO lParam);
[DllImport("User32", SetLastError = true)]
internal static extern int CreateWindowEx(
int dwExStyle,
string lpClassName,
string lpWindowName,
int dwStyle,
int X,
int Y,
int nWidth,
int nHeight,
int hWndParent,
int hMenu,
int hInstance,
IntPtr lpParam);
[DllImport("User32", SetLastError = true)]
internal static extern int DestroyWindow(int hwnd);
[DllImport("User32", SetLastError = true)]
static extern int MoveWindow(
int hwnd,
int x,
int y,
int nWidth,
int nHeight,
int bRepaint);
#endregion
My Problem is when the form is in minimized state and shown the balloon means. The entire system is hanged.
I found
the that problem when calling the "
SendMessage(int hWnd,int Msg,int wParam,IntPtr lParam)
" Method.
please some one
suggesst suggest me to solve this problem.
Thanks & Regards
Dhilip.R