371 INLINE void StopMessagePump() { m_breakOnError = TRUE; }
372
373 /* Debug settings */
374 INLINE void SetVerbose(long flag) { m_verbose = (flag != 0); }
375 INLINE void SetVerify(long flag) { m_verifyComponents = (flag != 0); }
376 INLINE void SetBreak(long flag) { m_breakOnError = (flag != 0); }
377 INLINE void SetHeapCheck(long flag);
378
379 static void SetBusy(BOOL busy);
380
381 /* Set and get the default input method Window handler. */
382 INLINE void SetInputMethodWindow(HWND inputMethodHWnd) { m_inputMethodHWnd = inputMethodHWnd; }
383 INLINE HWND GetInputMethodWindow() { return m_inputMethodHWnd; }
384
385 static VOID CALLBACK PrimaryIdleFunc();
386 static VOID CALLBACK SecondaryIdleFunc();
387 static BOOL CALLBACK CommonPeekMessageFunc(MSG& msg);
388 static BOOL activateKeyboardLayout(HKL hkl);
389
390 HANDLE m_waitEvent;
391 DWORD eventNumber;
392 private:
393 HWND CreateToolkitWnd(LPCTSTR name);
394
395 BOOL m_localPump;
396 DWORD m_mainThreadId;
397 HWND m_toolkitHWnd;
398 HWND m_inputMethodHWnd;
399 BOOL m_verbose;
400 BOOL m_isActive; // set to FALSE at beginning of Dispose
401 BOOL m_isDisposed; // set to TRUE at end of Dispose
402 BOOL m_areExtraMouseButtonsEnabled;
403
404 BOOL m_vmSignalled; // set to TRUE if QUERYENDSESSION has successfully
405 // raised SIGTERM
406
407 BOOL m_verifyComponents;
408 BOOL m_breakOnError;
409
410 BOOL m_breakMessageLoop;
411 UINT m_messageLoopResult;
|
371 INLINE void StopMessagePump() { m_breakOnError = TRUE; }
372
373 /* Debug settings */
374 INLINE void SetVerbose(long flag) { m_verbose = (flag != 0); }
375 INLINE void SetVerify(long flag) { m_verifyComponents = (flag != 0); }
376 INLINE void SetBreak(long flag) { m_breakOnError = (flag != 0); }
377 INLINE void SetHeapCheck(long flag);
378
379 static void SetBusy(BOOL busy);
380
381 /* Set and get the default input method Window handler. */
382 INLINE void SetInputMethodWindow(HWND inputMethodHWnd) { m_inputMethodHWnd = inputMethodHWnd; }
383 INLINE HWND GetInputMethodWindow() { return m_inputMethodHWnd; }
384
385 static VOID CALLBACK PrimaryIdleFunc();
386 static VOID CALLBACK SecondaryIdleFunc();
387 static BOOL CALLBACK CommonPeekMessageFunc(MSG& msg);
388 static BOOL activateKeyboardLayout(HKL hkl);
389
390 HANDLE m_waitEvent;
391 volatile DWORD eventNumber;
392 volatile BOOL isInDoDragDropLoop;
393 private:
394 HWND CreateToolkitWnd(LPCTSTR name);
395
396 BOOL m_localPump;
397 DWORD m_mainThreadId;
398 HWND m_toolkitHWnd;
399 HWND m_inputMethodHWnd;
400 BOOL m_verbose;
401 BOOL m_isActive; // set to FALSE at beginning of Dispose
402 BOOL m_isDisposed; // set to TRUE at end of Dispose
403 BOOL m_areExtraMouseButtonsEnabled;
404
405 BOOL m_vmSignalled; // set to TRUE if QUERYENDSESSION has successfully
406 // raised SIGTERM
407
408 BOOL m_verifyComponents;
409 BOOL m_breakOnError;
410
411 BOOL m_breakMessageLoop;
412 UINT m_messageLoopResult;
|