• R/O
  • HTTP
  • SSH
  • HTTPS

xkeymacs: Commit


Commit MetaInfo

Revision7f7f720f94092269df599cbc81fb5bc84bfa021d (tree)
Time2011-05-27 08:21:42
AuthorKazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Log Message

CUtils::IsDialog detects a sound box in Internet Explorer isn't a dialog.

Change Summary

Incremental Difference

--- a/xkeymacsdll/Utils.cpp
+++ b/xkeymacsdll/Utils.cpp
@@ -843,6 +843,10 @@ int CUtils::GetClipboardTextLength()
843843
844844 BOOL CUtils::IsDialog()
845845 {
846+ HWND hwnd = GetForegroundWindow();
847+ TCHAR szWindowText[0x100] = {'\0'};
848+ if (!GetWindowText(hwnd, szWindowText, sizeof(szWindowText)))
849+ return FALSE; // inside sound box
846850 return GetParent(GetForegroundWindow()) != NULL;
847851 }
848852
Show on old repository browser