title: how to create tooltips with arabic text in mfc application
body: <p>I want to create a simple MFC application which uses the RTL property to display a tooltip with the given Arabic text content for an edit box in the application dialog. 
  My code looks like this:</p>
  
  <pre><code>HWND CMFCApplicationDlg::CreateToolTip(HWND hWnd, LPCTSTR szText){
  
      hWndTT = CreateWindowEx(NULL, TOOLTIPS_CLASS, NULL,
               WS_POPUP | TTS_ALWAYSTIP | TTS_BALLOON,
               CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
               m_hWnd,
               NULL,
               GetModuleHandle(NULL),
               NULL);
  
      if(!hWndTT)
      {
          return NULL;
      }
  
      if (szText == NULL)
      {
          ::DestroyWindow(hWndTT);
          hWndTT = NULL;
          return NULL;
      }
  
  // Set up the tool information. In this case, the "tool" is the entire parent window 
      toolItem.cbSize = sizeof(toolItem);
      toolItem.uFlags = TTF_IDISHWND | TTF_SUBCLASS | TTF_RTLREADING;//Setting RTL flag here
      toolItem.hwnd = m_hWnd;
      toolItem.hinst = GetModuleHandle(NULL);
      toolItem.lpszText = (wchar_t *)szText;
      toolItem.uId = (UINT_PTR)hWnd;
  
      ::GetClientRect(hWnd, &amp;toolItem.rect);
  
      // Associate the tooltip with the tool window    
      LRESULT result = ::SendMessage(hWndTT, TTM_ADDTOOL, 0, (LPARAM)&amp;toolItem);
  
     return hWndTT;
  }
  </code></pre>
  
  <p>I'm calling this function from OnInitDialog() method this way:</p>
  
  <pre><code>CreateToolTip((HWND)GetDlgItem(IDC_EDIT_DUMMY), L".استخدم 2 من المرات في اليوم");
  </code></pre>
  
  <p>Here IDC_EDIT_DUMMY is the ID for the edit box that I am trying to attach the tooltip with. But for some reason, the application doesn't display the tooltip at all. Where am I going wrong?</p>