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

dc.cpp File Reference

#include <odin.h>
#include <os2wrap.h>
#include <stdlib.h>
#include <string.h>
#include <win32type.h>
#include <win32api.h>
#include <winuser32.h>
#include <winconst.h>
#include <misc.h>
#include <win32wbase.h>
#include <math.h>
#include <limits.h>
#include "oslibwin.h"
#include "oslibmsg.h"
#include <dcdata.h>
#include <codepage.h>
#include <wingdi32.h>
#include <stats.h>
#include "dc.h"
#include "dbglocal.h"

Include dependency graph for dc.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define INCL_WIN
#define INCL_GPI
#define INCL_GREALL
#define INCL_DEV
#define INCLUDED_BY_DC
#define DBG_LOCALLOG   DBG_dc
#define DEVESC_SETPS   49149L
#define FLOAT_TO_FIXED(x)   ((FIXED) ((x) * 65536.0))
#define MICRO_HPS_TO_HDC(x)   ((x) & 0xFFFFFFFE)
#define PMRECT_FROM_WINRECT(pmRect, winRect)
#define WINRECT_FROM_PMRECT(winRect, pmRect)
#define MEM_HPS_MAX   768
#define dprintfRegion(a, b, c)

Functions

BOOL setPageXForm (Win32BaseWindow *wnd, pDCData pHps)
BOOL changePageXForm (Win32BaseWindow *wnd, pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev)
LONG clientHeight (Win32BaseWindow *wnd, DWORD hwnd, pDCData pHps)
void WIN32API TestWideLine (pDCData pHps)
void WIN32API Calculate1PixelDelta (pDCData pHps)
int setMapMode (Win32BaseWindow *wnd, pDCData pHps, int mode)
VOID removeClientArea (Win32BaseWindow *window, pDCData pHps)
void selectClientArea (Win32BaseWindow *window, pDCData pHps)
void selectClientArea (Win32BaseWindow *wnd, HDC hdc)
BOOL WIN32API changePageXForm (pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev)
BOOL WIN32API setPageXForm (pDCData pHps)
VOID WIN32API removeClientArea (pDCData pHps)
VOID WIN32API selectClientArea (pDCData pHps)
VOID WIN32API checkOrigin (pDCData pHps)
LONG WIN32API clientHeight (DWORD hwnd, pDCData pHps)
int WIN32API setMapModeDC (pDCData pHps, int mode)
BOOL isYup (pDCData pHps)
INT revertDy (Win32BaseWindow *wnd, INT dy)
HDC sendEraseBkgnd (Win32BaseWindow *wnd)
void releaseOwnDC (HDC hps)
HDC WIN32API BeginPaint (DWORD hWnd, PPAINTSTRUCT_W lpps)
BOOL WIN32API EndPaint (DWORD hWnd, const PAINTSTRUCT_W *pPaint)
int WIN32API ReleaseDC (DWORD hwnd, HDC hdc)
HDC WIN32API GetDCEx (DWORD hwnd, HRGN hrgn, ULONG flags)
HDC WIN32API GetDC (DWORD hwnd)
HDC WIN32API GetWindowDC (DWORD hwnd)
LRESULT WIN32API RedrawChildEnumProc (DWORD hwnd, LPARAM lParam)
BOOL WIN32API RedrawWindow (DWORD hwnd, const RECT *pRect, HRGN hrgn, DWORD redraw)
BOOL WIN32API UpdateWindow (DWORD hwnd)
BOOL WIN32API ValidateRect (DWORD hwnd, const RECT *lprc)
BOOL WIN32API ValidateRgn (DWORD hwnd, HRGN hrgn)
BOOL WIN32API InvalidateRect (DWORD hwnd, const RECT *pRect, BOOL erase)
BOOL WIN32API InvalidateRgn (DWORD hwnd, HRGN hrgn, BOOL erase)
BOOL setPMRgnIntoWinRgn (HPS hps, HRGN hrgnPM, HRGN hrgnWin, LONG height)
INT WIN32API ScrollWindowEx (DWORD hwnd, int dx, int dy, const RECT *pScroll, const RECT *pClip, HRGN hrgnUpdate, PRECT pRectUpdate, UINT scrollFlag)
BOOL WIN32API ScrollWindow (DWORD hwnd, int dx, int dy, const RECT *pScroll, const RECT *pClip)
DWORD WIN32API WindowFromDC (HDC hdc)

Variables

const XFORM_W XFORMIdentity = { 1.0, 0.0, 0.0, 1.0, 0, 0 }
const MATRIXLF matrixlfIdentity = { 0x10000, 0, 0, 0, 0x10000, 0, 0, 0, 0}


Define Documentation

#define INCL_WIN
 

Definition at line 16 of file dc.cpp.

#define INCL_GPI
 

Definition at line 17 of file dc.cpp.

#define INCL_GREALL
 

Definition at line 18 of file dc.cpp.

#define INCL_DEV
 

Definition at line 19 of file dc.cpp.

#define INCLUDED_BY_DC
 

Definition at line 40 of file dc.cpp.

#define DBG_LOCALLOG   DBG_dc
 

Definition at line 43 of file dc.cpp.

#define DEVESC_SETPS   49149L
 

Definition at line 47 of file dc.cpp.

#define FLOAT_TO_FIXED      ((FIXED) ((x) * 65536.0))
 

Definition at line 50 of file dc.cpp.

Referenced by setPageXForm().

#define MICRO_HPS_TO_HDC      ((x) & 0xFFFFFFFE)
 

Definition at line 51 of file dc.cpp.

#define PMRECT_FROM_WINRECT pmRect,
winRect   
 

Value:

{                                               \
   (pmRect).xLeft   = (winRect).left;           \
   (pmRect).yBottom = (winRect).bottom;         \
   (pmRect).xRight  = (winRect).right;          \
   (pmRect).yTop    = (winRect).top;            \
}

Definition at line 53 of file dc.cpp.

#define WINRECT_FROM_PMRECT winRect,
pmRect   
 

Value:

{                                               \
   (winRect).left   = (pmRect).xLeft;           \
   (winRect).top    = (pmRect).yTop;            \
   (winRect).right  = (pmRect).xRight;          \
   (winRect).bottom = (pmRect).yBottom;         \
}

Definition at line 61 of file dc.cpp.

#define MEM_HPS_MAX   768
 

Definition at line 69 of file dc.cpp.

#define dprintfRegion a,
b,
 
 

Definition at line 95 of file dc.cpp.

Referenced by BeginPaint().


Function Documentation

BOOL setPageXForm Win32BaseWindow   wnd,
pDCData    pHps
 

Definition at line 214 of file dc.cpp.

BOOL changePageXForm Win32BaseWindow   wnd,
pDCData    pHps,
PPOINTL    pValue,
int    x,
int    y,
PPOINTL    pPrev
 

Definition at line 328 of file dc.cpp.

LONG clientHeight Win32BaseWindow   wnd,
DWORD    hwnd,
pDCData    pHps
 

Definition at line 412 of file dc.cpp.

void WIN32API TestWideLine pDCData    pHps
 

Definition at line 100 of file dc.cpp.

Referenced by setPageXForm().

void WIN32API Calculate1PixelDelta pDCData    pHps
 

Definition at line 124 of file dc.cpp.

Referenced by setPageXForm().

int setMapMode Win32BaseWindow   wnd,
pDCData    pHps,
int    mode
 

Definition at line 134 of file dc.cpp.

Referenced by BeginPaint(), GetDCEx(), and setMapModeDC().

VOID removeClientArea Win32BaseWindow   window,
pDCData    pHps
 

Definition at line 389 of file dc.cpp.

void selectClientArea Win32BaseWindow   window,
pDCData    pHps
 

Definition at line 396 of file dc.cpp.

void selectClientArea Win32BaseWindow   wnd,
HDC    hdc
 

Definition at line 403 of file dc.cpp.

BOOL WIN32API changePageXForm pDCData    pHps,
PPOINTL    pValue,
int    x,
int    y,
PPOINTL    pPrev
 

Definition at line 446 of file dc.cpp.

Referenced by setMapMode().

BOOL WIN32API setPageXForm pDCData    pHps
 

Definition at line 460 of file dc.cpp.

VOID WIN32API removeClientArea pDCData    pHps
 

Definition at line 474 of file dc.cpp.

Referenced by GetDCEx(), and ReleaseDC().

VOID WIN32API selectClientArea pDCData    pHps
 

Definition at line 489 of file dc.cpp.

VOID WIN32API checkOrigin pDCData    pHps
 

Definition at line 504 of file dc.cpp.

LONG WIN32API clientHeight DWORD    hwnd,
pDCData    pHps
 

Definition at line 520 of file dc.cpp.

Referenced by setPageXForm().

int WIN32API setMapModeDC pDCData    pHps,
int    mode
 

Definition at line 538 of file dc.cpp.

BOOL isYup pDCData    pHps
 

Definition at line 552 of file dc.cpp.

INT revertDy Win32BaseWindow   wnd,
INT    dy
 

Definition at line 570 of file dc.cpp.

Referenced by ScrollWindowEx().

HDC sendEraseBkgnd Win32BaseWindow   wnd
 

Definition at line 590 of file dc.cpp.

void releaseOwnDC HDC    hps
 

Definition at line 632 of file dc.cpp.

HDC WIN32API BeginPaint DWORD    hWnd,
PPAINTSTRUCT_W    lpps
 

Definition at line 652 of file dc.cpp.

Referenced by BUTTON_Paint(), COMBO_Paint(), EDIT_WM_Paint(), LISTBOX_Paint(), PopupMenuWndProc(), SCROLL_Paint(), and STATIC_Paint().

BOOL WIN32API EndPaint DWORD    hWnd,
const PAINTSTRUCT_W *    pPaint
 

Definition at line 798 of file dc.cpp.

Referenced by BUTTON_Paint(), COMBO_Paint(), EDIT_WM_Paint(), LISTBOX_Paint(), PopupMenuWndProc(), SCROLL_Paint(), and STATIC_Paint().

int WIN32API ReleaseDC DWORD    hwnd,
HDC    hdc
 

Definition at line 838 of file dc.cpp.

Referenced by BUTTON_SetFont(), BUTTON_SetText(), CBGetTextAreaHeight(), COMBO_EraseBackground(), CURSORICON_CreateFromResource(), EDIT_BuildLineDefs_ML(), EDIT_CharFromPos(), EDIT_EM_PosFromChar(), EDIT_Refresh(), EDIT_WM_SetFont(), EndPaint(), GET_SHORT(), ICONTITLE_GetTitlePos(), LISTBOX_RepaintItem(), LISTBOX_SetFont(), LoadImageW(), LookupIconIdFromDirectoryEx(), MDI_AugmentFrameMenu(), MENU_GetMenuBarHeight(), MENU_PopupMenuCalcSize(), MENU_SelectItem(), MENU_ShowSubPopup(), MENU_TrackMouseMenuBar_MouseMove(), MSGBOX_OnInit(), SCROLL_DrawScrollBar(), SCROLL_HandleScrollEvent(), and SCROLL_RefreshScrollBar().

HDC WIN32API GetDCEx DWORD    hwnd,
HRGN    hrgn,
ULONG    flags
 

Definition at line 897 of file dc.cpp.

Referenced by BeginPaint(), GetDC(), GetWindowDC(), LISTBOX_RepaintItem(), LISTBOX_SetFont(), MENU_GetMenuBarHeight(), MENU_SelectItem(), MENU_ShowSubPopup(), MENU_TrackMouseMenuBar_MouseMove(), SCROLL_DrawScrollBar(), SCROLL_HandleScrollEvent(), and SCROLL_RefreshScrollBar().

HDC WIN32API GetDC DWORD    hwnd
 

Definition at line 1119 of file dc.cpp.

Referenced by BUTTON_SetFont(), BUTTON_SetText(), CBGetTextAreaHeight(), COMBO_EraseBackground(), CURSORICON_CreateFromResource(), EDIT_BuildLineDefs_ML(), EDIT_CharFromPos(), EDIT_EM_PosFromChar(), EDIT_Refresh(), EDIT_WM_SetFont(), GET_SHORT(), ICONTITLE_GetTitlePos(), LoadImageW(), LookupIconIdFromDirectoryEx(), MDI_AugmentFrameMenu(), MENU_PopupMenuCalcSize(), MENU_SelectItem(), MENU_ShowSubPopup(), and MSGBOX_OnInit().

HDC WIN32API GetWindowDC DWORD    hwnd
 

Definition at line 1128 of file dc.cpp.

LRESULT WIN32API RedrawChildEnumProc DWORD    hwnd,
LPARAM    lParam
 

Definition at line 1136 of file dc.cpp.

BOOL WIN32API RedrawWindow DWORD    hwnd,
const RECT *    pRect,
HRGN    hrgn,
DWORD    redraw
 

Definition at line 1156 of file dc.cpp.

Referenced by CBDropDown(), CBResetPos(), CBRollUp(), COMBO_Directory(), InvalidateRect(), InvalidateRgn(), RedrawChildEnumProc(), ScrollWindowEx(), SetSysColors(), SetWindowRgn(), ValidateRect(), and ValidateRgn().

BOOL WIN32API UpdateWindow DWORD    hwnd
 

Definition at line 1358 of file dc.cpp.

Referenced by CBRepaintButton(), MENU_ShowPopup(), RedrawWindow(), and STATIC_SetFont().

BOOL WIN32API ValidateRect DWORD    hwnd,
const RECT *    lprc
 

Definition at line 1408 of file dc.cpp.

Referenced by IconTitleWndProc().

BOOL WIN32API ValidateRgn DWORD    hwnd,
HRGN    hrgn
 

Definition at line 1419 of file dc.cpp.

BOOL WIN32API InvalidateRect DWORD    hwnd,
const RECT *    pRect,
BOOL    erase
 

Definition at line 1426 of file dc.cpp.

Referenced by BUTTON_Enable(), BUTTON_SetImage(), BUTTON_SysColorChange(), CBRepaintButton(), COMBO_Command(), COMBO_EditKillFocus(), COMBO_EditSetFocus(), COMBO_Enable(), COMBO_ResetContent(), COMBO_SelectString(), COMBO_SetCurSel(), EDIT_ML_InvalidateText(), EDIT_Refresh(), EDIT_SL_InvalidateText(), LISTBOX_Enable(), LISTBOX_InvalidateItems(), LISTBOX_ResetContent(), LISTBOX_SetCount(), LISTBOX_SetFont(), LISTBOX_SetHorizontalPos(), LISTBOX_SetItemHeight(), LISTBOX_SetTopItem(), LISTBOX_UpdatePage(), STATIC_Enable(), STATIC_SetFont(), STATIC_SetIconMsg(), STATIC_SetImage(), STATIC_SetText(), and STATIC_SysColorChange().

BOOL WIN32API InvalidateRgn DWORD    hwnd,
HRGN    hrgn,
BOOL    erase
 

Definition at line 1449 of file dc.cpp.

BOOL setPMRgnIntoWinRgn HPS    hps,
HRGN    hrgnPM,
HRGN    hrgnWin,
LONG    height
 

Definition at line 1470 of file dc.cpp.

Referenced by ScrollWindowEx().

INT WIN32API ScrollWindowEx DWORD    hwnd,
int    dx,
int    dy,
const RECT *    pScroll,
const RECT *    pClip,
HRGN    hrgnUpdate,
PRECT    pRectUpdate,
UINT    scrollFlag
 

Definition at line 1524 of file dc.cpp.

Referenced by EDIT_EM_LineScroll(), LISTBOX_SetHorizontalPos(), LISTBOX_SetTopItem(), ScrollChildren(), and ScrollWindow().

BOOL WIN32API ScrollWindow DWORD    hwnd,
int    dx,
int    dy,
const RECT *    pScroll,
const RECT *    pClip
 

Definition at line 1679 of file dc.cpp.

Referenced by ScrollWindowEx().

DWORD WIN32API WindowFromDC HDC    hdc
 

Definition at line 1688 of file dc.cpp.


Variable Documentation

const XFORM_W XFORMIdentity = { 1.0, 0.0, 0.0, 1.0, 0, 0 }
 

Definition at line 71 of file dc.cpp.

const MATRIXLF matrixlfIdentity = { 0x10000, 0, 0, 0, 0x10000, 0, 0, 0, 0}
 

Definition at line 72 of file dc.cpp.


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