mmhelper.h
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:1k
源码类别:

系统编程

开发平台:

Visual C++

  1. #ifndef _MMHELPER_H_
  2. #define _MMHELPER_H_
  3. /* This file contains the declarations of MultiMonitor helper functions used
  4.    inside the shell, they are implemented in shelllibmmhelper.cpp */
  5. #ifdef __cplusplus
  6. extern "C" {            /* Assume C declarations for C++ */
  7. #endif  /* __cplusplus */
  8. HMONITOR GetPrimaryMonitor();
  9. BOOL GetMonitorRects(HMONITOR hMon, LPRECT prc, BOOL bWork);
  10. #define GetMonitorRect(hMon, prc) 
  11.         GetMonitorRects((hMon), (prc), FALSE)
  12. #define GetMonitorWorkArea(hMon, prc) 
  13.         GetMonitorRects((hMon), (prc), TRUE)
  14. #define IsMonitorValid(hMon) 
  15.         GetMonitorRects((hMon), NULL, TRUE)
  16. #define GetNumberOfMonitors() 
  17.         GetSystemMetrics(SM_CMONITORS)
  18. #ifdef __cplusplus
  19. }
  20. #endif /* __cplusplus */
  21. #endif /* _MMHELPER_H_ */