Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

display.cpp File Reference

#include <os2win.h>
#include <misc.h>
#include <string.h>
#include <heapstring.h>
#include "pmwindow.h"
#include "monitor.h"
#include "windef.h"
#include "dbglocal.h"

Include dependency graph for display.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define DBG_LOCALLOG   DBG_display
#define NRMODES   5
#define NRDEPTHS   4
#define xPRIMARY_MONITOR   ((HMONITOR)0x12340042)

Functions

void PMDRV_MONITOR_Initialize (MONITOR *pMonitor)
void PMDRV_MONITOR_Finalize (MONITOR *pMonitor)
BOOL PMDRV_MONITOR_IsSingleWindow (MONITOR *pMonitor)
int PMDRV_MONITOR_GetWidth (MONITOR *pMonitor)
int PMDRV_MONITOR_GetHeight (MONITOR *pMonitor)
int PMDRV_MONITOR_GetDepth (MONITOR *pMonitor)
BOOL PMDRV_MONITOR_GetScreenSaveActive (MONITOR *pMonitor)
void PMDRV_MONITOR_SetScreenSaveActive (MONITOR *pMonitor, BOOL bActivate)
int PMDRV_MONITOR_GetScreenSaveTimeout (MONITOR *pMonitor)
void PMDRV_MONITOR_SetScreenSaveTimeout (MONITOR *pMonitor, int nTimeout)
MONITOR * MONITOR_GetMonitor (HMONITOR hMonitor)
void MONITOR_Initialize (MONITOR *pMonitor)
void MONITOR_Finalize (MONITOR *pMonitor)
BOOL MONITOR_IsSingleWindow (MONITOR *pMonitor)
int MONITOR_GetWidth (MONITOR *pMonitor)
int MONITOR_GetHeight (MONITOR *pMonitor)
int MONITOR_GetDepth (MONITOR *pMonitor)
BOOL MONITOR_GetScreenSaveActive (MONITOR *pMonitor)
void MONITOR_SetScreenSaveActive (MONITOR *pMonitor, BOOL bActivate)
int MONITOR_GetScreenSaveTimeout (MONITOR *pMonitor)
void MONITOR_SetScreenSaveTimeout (MONITOR *pMonitor, int nTimeout)
BOOL WIN32API EnumDisplaySettingsA (LPCSTR name, DWORD n, LPDEVMODEA devmode)
BOOL WIN32API EnumDisplaySettingsW (LPCWSTR name, DWORD n, LPDEVMODEW devmode)
LONG WIN32API ChangeDisplaySettingsA (LPDEVMODEA lpDevMode, DWORD dwFlags)
LONG WIN32API ChangeDisplaySettingsW (LPDEVMODEW lpDevMode, DWORD dwFlags)
LONG WIN32API ChangeDisplaySettingsExA (LPCSTR devname, LPDEVMODEA lpDevMode, HWND hwnd, DWORD dwFlags, LPARAM lparam)
LONG WIN32API ChangeDisplaySettingsExW (LPCWSTR devname, LPDEVMODEW lpDevMode, HWND hwnd, DWORD dwFlags, LPARAM lparam)
BOOL WIN32API GetMonitorInfoA (HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo)
BOOL WIN32API GetMonitorInfoW (HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo)
HMONITOR WIN32API MonitorFromWindow (HWND hWnd, DWORD dwFlags)
HMONITOR WIN32API MonitorFromRect (LPRECT lprcScreenCoords, DWORD dwFlags)
HMONITOR WIN32API MonitorFromPoint (POINT ptScreenCoords, DWORD dwFlags)
BOOL WIN32API EnumDisplayMonitors (HDC hdcOptionalForPainting, LPRECT lprcEnumMonitorsThatIntersect, MONITORENUMPROC lpfnEnumProc, LPARAM dwData)
BOOL WINAPI EnumDisplayDevicesA (LPVOID unused, DWORD i, LPDISPLAY_DEVICEA lpDisplayDevice, DWORD dwFlags)
BOOL WINAPI EnumDisplayDevicesW (LPVOID unused, DWORD i, LPDISPLAY_DEVICEW lpDisplayDevice, DWORD dwFlags)

Variables

{ ... }  modes
int depths [4] = {8,16,24,32}
MONITOR MONITOR_PrimaryMonitor
MONITOR_DRIVER PM_MONITOR_Driver
MONITOR_DRIVER * MONITOR_Driver = &PM_MONITOR_Driver


Define Documentation

#define DBG_LOCALLOG   DBG_display
 

Definition at line 24 of file display.cpp.

#define NRMODES   5
 

Definition at line 27 of file display.cpp.

#define NRDEPTHS   4
 

Definition at line 28 of file display.cpp.

#define xPRIMARY_MONITOR   ((HMONITOR)0x12340042)
 

Definition at line 37 of file display.cpp.


Function Documentation

void PMDRV_MONITOR_Initialize MONITOR *    pMonitor
 

Definition at line 46 of file display.cpp.

void PMDRV_MONITOR_Finalize MONITOR *    pMonitor
 

Definition at line 56 of file display.cpp.

BOOL PMDRV_MONITOR_IsSingleWindow MONITOR *    pMonitor
 

Definition at line 64 of file display.cpp.

int PMDRV_MONITOR_GetWidth MONITOR *    pMonitor
 

Definition at line 76 of file display.cpp.

int PMDRV_MONITOR_GetHeight MONITOR *    pMonitor
 

Definition at line 88 of file display.cpp.

int PMDRV_MONITOR_GetDepth MONITOR *    pMonitor
 

Definition at line 100 of file display.cpp.

BOOL PMDRV_MONITOR_GetScreenSaveActive MONITOR *    pMonitor
 

Definition at line 112 of file display.cpp.

void PMDRV_MONITOR_SetScreenSaveActive MONITOR *    pMonitor,
BOOL    bActivate
 

Definition at line 124 of file display.cpp.

int PMDRV_MONITOR_GetScreenSaveTimeout MONITOR *    pMonitor
 

Definition at line 134 of file display.cpp.

void PMDRV_MONITOR_SetScreenSaveTimeout MONITOR *    pMonitor,
int    nTimeout
 

Definition at line 146 of file display.cpp.

MONITOR* MONITOR_GetMonitor HMONITOR    hMonitor [static]
 

Definition at line 171 of file display.cpp.

void MONITOR_Initialize MONITOR *    pMonitor
 

Definition at line 186 of file display.cpp.

Referenced by inittermUser32().

void MONITOR_Finalize MONITOR *    pMonitor
 

Definition at line 194 of file display.cpp.

Referenced by cleanupUser32().

BOOL MONITOR_IsSingleWindow MONITOR *    pMonitor
 

Definition at line 202 of file display.cpp.

int MONITOR_GetWidth MONITOR *    pMonitor
 

Definition at line 210 of file display.cpp.

int MONITOR_GetHeight MONITOR *    pMonitor
 

Definition at line 218 of file display.cpp.

int MONITOR_GetDepth MONITOR *    pMonitor
 

Definition at line 226 of file display.cpp.

BOOL MONITOR_GetScreenSaveActive MONITOR *    pMonitor
 

Definition at line 234 of file display.cpp.

void MONITOR_SetScreenSaveActive MONITOR *    pMonitor,
BOOL    bActivate
 

Definition at line 242 of file display.cpp.

int MONITOR_GetScreenSaveTimeout MONITOR *    pMonitor
 

Definition at line 250 of file display.cpp.

void MONITOR_SetScreenSaveTimeout MONITOR *    pMonitor,
int    nTimeout
 

Definition at line 258 of file display.cpp.

BOOL WIN32API EnumDisplaySettingsA LPCSTR    name,
DWORD    n,
LPDEVMODEA    devmode
 

Definition at line 280 of file display.cpp.

Referenced by EnumDisplaySettingsW().

BOOL WIN32API EnumDisplaySettingsW LPCWSTR    name,
DWORD    n,
LPDEVMODEW    devmode
 

Definition at line 331 of file display.cpp.

LONG WIN32API ChangeDisplaySettingsA LPDEVMODEA    lpDevMode,
DWORD    dwFlags
 

Definition at line 354 of file display.cpp.

Referenced by ChangeDisplaySettingsW().

LONG WIN32API ChangeDisplaySettingsW LPDEVMODEW    lpDevMode,
DWORD    dwFlags
 

Definition at line 388 of file display.cpp.

LONG WIN32API ChangeDisplaySettingsExA LPCSTR    devname,
LPDEVMODEA    lpDevMode,
HWND    hwnd,
DWORD    dwFlags,
LPARAM    lparam
 

Definition at line 400 of file display.cpp.

Referenced by ChangeDisplaySettingsExW().

LONG WIN32API ChangeDisplaySettingsExW LPCWSTR    devname,
LPDEVMODEW    lpDevMode,
HWND    hwnd,
DWORD    dwFlags,
LPARAM    lparam
 

Definition at line 419 of file display.cpp.

BOOL WIN32API GetMonitorInfoA HMONITOR    hMonitor,
LPMONITORINFO    lpMonitorInfo
 

Definition at line 432 of file display.cpp.

BOOL WIN32API GetMonitorInfoW HMONITOR    hMonitor,
LPMONITORINFO    lpMonitorInfo
 

Definition at line 460 of file display.cpp.

HMONITOR WIN32API MonitorFromWindow HWND    hWnd,
DWORD    dwFlags
 

Definition at line 488 of file display.cpp.

HMONITOR WIN32API MonitorFromRect LPRECT    lprcScreenCoords,
DWORD    dwFlags
 

Definition at line 509 of file display.cpp.

Referenced by MonitorFromWindow().

HMONITOR WIN32API MonitorFromPoint POINT    ptScreenCoords,
DWORD    dwFlags
 

Definition at line 526 of file display.cpp.

BOOL WIN32API EnumDisplayMonitors HDC    hdcOptionalForPainting,
LPRECT    lprcEnumMonitorsThatIntersect,
MONITORENUMPROC    lpfnEnumProc,
LPARAM    dwData
 

Definition at line 544 of file display.cpp.

BOOL WINAPI EnumDisplayDevicesA LPVOID    unused,
DWORD    i,
LPDISPLAY_DEVICEA    lpDisplayDevice,
DWORD    dwFlags
 

Definition at line 603 of file display.cpp.

BOOL WINAPI EnumDisplayDevicesW LPVOID    unused,
DWORD    i,
LPDISPLAY_DEVICEW    lpDisplayDevice,
DWORD    dwFlags
 

Definition at line 622 of file display.cpp.


Variable Documentation

int w
 

Definition at line 30 of file display.cpp.

int h
 

Definition at line 30 of file display.cpp.

struct { ... } modes
 

int depths[4] = {8,16,24,32}
 

Definition at line 32 of file display.cpp.

MONITOR MONITOR_PrimaryMonitor
 

Definition at line 39 of file display.cpp.

MONITOR_DRIVER PM_MONITOR_Driver
 

Initial value:

Definition at line 152 of file display.cpp.

MONITOR_DRIVER* MONITOR_Driver = &PM_MONITOR_Driver
 

Definition at line 166 of file display.cpp.


Generated on Wed Jan 23 23:18:32 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001