Advertisement

08.29.2008 at 05:37AM PDT, ID: 23688603
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Tooltip not working

Asked by biswaranjan_rath in Development Editors & IDEs, Development Software, Mozilla Web Browser

Tags: ,

I'm working on Mozilla developement. I'm using the below code to show the tooltip. But for some reason it's not working.

GetRawWindow() is our native API which returns HWND of Browser window( MozillaWindowClass ). Even I use parent window handle it's not working.

This is the only thing I'm doing. Please let me know if anybody has any solution to it.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
// WebBrowserChrome::nsITooltipListener
//*****************************************************************************
NS_IMETHODIMP WebBrowserChrome::OnShowTooltip( PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar* aTipText )
{
  HWND hWnd = GetRawWindow();
  HWND hwndTip = CreateWindowEx(WS_EX_TOPMOST, TOOLTIPS_CLASS, NULL,
                            WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP,
                            CW_USEDEFAULT, CW_USEDEFAULT,
                            CW_USEDEFAULT, CW_USEDEFAULT,
                            hWnd, NULL, NULL,
                            NULL);
 
  SetWindowPos(hwndTip, HWND_TOPMOST, aXCoords, aYCoords, 0, 0,
               SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_SHOWWINDOW );
 
  TOOLINFO ti;
  ti.cbSize = sizeof(TOOLINFO);
  ti.uFlags = TTF_IDISHWND | TTF_TRACK | TTF_ABSOLUTE;
  ti.hwnd = hWnd;
  ti.hinst = NULL;
  ti.uId = (UINT_PTR)hWnd;
  ti.lpszText = (LPSTR)(LPCSTR) aTipText;		
  GetClientRect ( hWnd, &ti.rect);
 
  SendMessage(hwndTip, TTM_ADDTOOL, 0, (LPARAM) (LPTOOLINFO) &ti);
  SendMessage(hwndTip, TTM_TRACKPOSITION, 0, (LPARAM)(DWORD) MAKELONG(aXCoords, aYCoords));
  SendMessage(hwndTip, TTM_TRACKACTIVATE, true, (LPARAM)(LPTOOLINFO) &ti);
 
  return NS_OK;
}
[+][-]09.08.2008 at 09:51PM PDT, ID: 22424353

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Development Editors & IDEs, Development Software, Mozilla Web Browser
Tags: C++, Mozilla
Sign Up Now!
Solution Provided By: biswaranjan_rath
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628