#include "wx/msw/ole/oleutils.h"
#include <shldisp.h>
-#if defined(__MINGW32__) || defined (__WATCOMC__)
+#if defined(__MINGW32__) || defined (__WATCOMC__) || defined(__CYGWIN__)
// needed for IID_IAutoComplete, IID_IAutoComplete2 and ACO_AUTOSUGGEST
#include <shlguid.h>
#endif
if ( wxUxThemeEngine::GetIfActive() )
{
// notice that this message always works with Unicode strings
+ //
+ // we always use TRUE for wParam to show the hint even when the window
+ // has focus, otherwise there would be no way to show the hint for the
+ // initially focused window
if ( ::SendMessage(GetEditHwnd(), EM_SETCUEBANNER,
- 0, (LPARAM)(const wchar_t *)hint.wc_str()) )
+ TRUE, (LPARAM)(const wchar_t *)hint.wc_str()) )
return true;
}