Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. bltpump.hxx
  7. The BLT Message Pump, declared
  8. This file declares the message pump of BLT applications.
  9. FILE HISTORY:
  10. beng 07-Oct-1991 Created
  11. */
  12. #ifndef _BLT_HXX_
  13. #error "Don't include this file directly; instead, include it through blt.hxx"
  14. #endif // _BLT_HXX_
  15. #ifndef _BLTPUMP_HXX_
  16. #define _BLTPUMP_HXX_
  17. /*************************************************************************
  18. NAME: HAS_MESSAGE_PUMP
  19. SYNOPSIS: Message pump for applications
  20. INTERFACE:
  21. RunMessagePump() - runs the pump. Pump runs until either
  22. it encounters WM_QUIT, or else the client-
  23. supplied Finished predicate returns TRUE.
  24. FilterMessage() - client-installable hook into the pump.
  25. IsPumpFinished() - client-definable termination predicate,
  26. for loops which do not run to the end
  27. of the world.
  28. CAVEATS:
  29. Descendants of APPLICATION should not replace IsPumpFinished,
  30. since they presumably want to run until WM_QUIT.
  31. HISTORY:
  32. beng 07-Oct-1991 Created
  33. **************************************************************************/
  34. DLL_CLASS HAS_MESSAGE_PUMP
  35. {
  36. protected:
  37. WPARAM RunMessagePump();
  38. // Customize pump to client's preference
  39. virtual BOOL FilterMessage( MSG* );
  40. virtual BOOL IsPumpFinished();
  41. };
  42. #endif // _BLTPUMP_HXX_ - end of file