Changeset 73
- Timestamp:
- Jul 9, 2012, 12:21:42 AM (10 years ago)
- Location:
- trunk/Utilities/StealFocusViaAttachInputThread
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/StealFocusViaAttachInputThread/MainDialog.h
r72 r73 97 97 const DWORD nWindowThreadIdentifier = Window.GetWindowThreadID(); 98 98 const DWORD nThreadIdentifier = GetCurrentThreadId(); 99 if(!nWindowThreadIdentifier || nWindowThreadIdentifier == nThreadIdentifier) 100 { 101 if(nWindowThreadIdentifier) 102 AtlMessageBoxEx(m_hWnd, _T("The application is supposed to steal focus from another application, so have another application running in foreground to check the stealing out!"), IDS_WARNING, MB_ICONINFORMATION | MB_OK); 103 m_nActionCountdown = 7; 104 SetTimer(TIMER_ACTION, 7250); 105 return 0; 106 } 99 107 __E(AttachThreadInput(nThreadIdentifier, nWindowThreadIdentifier, TRUE)); 100 108 GetDlgItem(IDC_EDIT).SetFocus(); -
trunk/Utilities/StealFocusViaAttachInputThread/StealFocusViaAttachInputThread_i.c
r72 r73 7 7 8 8 /* File created by MIDL compiler version 7.00.0555 */ 9 /* at Sun Jul 08 13:39:1920129 /* at Mon Jul 09 10:20:32 2012 10 10 */ 11 11 /* Compiler settings for StealFocusViaAttachInputThread.idl: -
trunk/Utilities/StealFocusViaAttachInputThread/StealFocusViaAttachInputThread_i.h
r72 r73 5 5 6 6 /* File created by MIDL compiler version 7.00.0555 */ 7 /* at Sun Jul 08 13:39:1920127 /* at Mon Jul 09 10:20:32 2012 8 8 */ 9 9 /* Compiler settings for StealFocusViaAttachInputThread.idl:
Note: See TracChangeset
for help on using the changeset viewer.