title: Is it necessary to destroy a tooltip?
body: <p>In my application I am handling the <code>WM_HELP</code> message and then creating a tooltip for a control using this method:</p>
  
  <p>Taken from: <a href="http://msdn.microsoft.com/en-us/library/bb760252(v=vs.85).aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/bb760252(v=vs.85).aspx</a></p>
  
  <pre><code>HWND CreateToolTip(int toolID, HWND hDlg, PTSTR pszText)
  {
      if (!toolID || !hDlg || !pszText)
      {
          return FALSE;
      }
      // Get the window of the tool.
      HWND hwndTool = GetDlgItem(hDlg, toolID);
  
      // Create the tooltip. g_hInst is the global instance handle.
      HWND hwndTip = CreateWindowEx(NULL, TOOLTIPS_CLASS, NULL,
                                WS_POPUP |TTS_ALWAYSTIP | TTS_BALLOON,
                                CW_USEDEFAULT, CW_USEDEFAULT,
                                CW_USEDEFAULT, CW_USEDEFAULT,
                                hDlg, NULL, 
                                g_hInst, NULL);
  
     if (!hwndTool || !hwndTip)
     {
         return (HWND)NULL;
     }                              
  
      // Associate the tooltip with the tool.
      TOOLINFO toolInfo = { 0 };
      toolInfo.cbSize = sizeof(toolInfo);
      toolInfo.hwnd = hDlg;
      toolInfo.uFlags = TTF_IDISHWND | TTF_SUBCLASS;
      toolInfo.uId = (UINT_PTR)hwndTool;
      toolInfo.lpszText = pszText;
      SendMessage(hwndTip, TTM_ADDTOOL, 0, (LPARAM)&amp;toolInfo);
  
      return hwndTip;
  }
  </code></pre>
  
  <p>The tooltip vanishes as soon as I move my mouse pointer. </p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>Is tooltip is destroyed or is it just hidden ?</li>
  <li>If it is hidden then how to destroy it and when?</li>
  </ol>
  
  <p>Thanks.</p>