#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:
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} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 50 of file dc.cpp. Referenced by setPageXForm().
|
|
|
|
Value: { \ (pmRect).xLeft = (winRect).left; \ (pmRect).yBottom = (winRect).bottom; \ (pmRect).xRight = (winRect).right; \ (pmRect).yTop = (winRect).top; \ } |
|
Value: { \ (winRect).left = (pmRect).xLeft; \ (winRect).top = (pmRect).yTop; \ (winRect).right = (pmRect).xRight; \ (winRect).bottom = (pmRect).yBottom; \ } |
|
|
|
Definition at line 95 of file dc.cpp. Referenced by BeginPaint().
|
|
|
|
|
|
|
|
Definition at line 100 of file dc.cpp. Referenced by setPageXForm().
|
|
Definition at line 124 of file dc.cpp. Referenced by setPageXForm().
|
|
Definition at line 134 of file dc.cpp. Referenced by BeginPaint(), GetDCEx(), and setMapModeDC().
|
|
|
|
|
|
|
|
Definition at line 446 of file dc.cpp. Referenced by setMapMode().
|
|
|
|
Definition at line 474 of file dc.cpp. Referenced by GetDCEx(), and ReleaseDC().
|
|
|
|
|
|
Definition at line 520 of file dc.cpp. Referenced by setPageXForm().
|
|
|
|
|
|
Definition at line 570 of file dc.cpp. Referenced by ScrollWindowEx().
|
|
|
|
|
|
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().
|
|
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().
|
|
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().
|
|
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().
|
|
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().
|
|
|
|
|
|
Definition at line 1156 of file dc.cpp. Referenced by CBDropDown(), CBResetPos(), CBRollUp(), COMBO_Directory(), InvalidateRect(), InvalidateRgn(), RedrawChildEnumProc(), ScrollWindowEx(), SetSysColors(), SetWindowRgn(), ValidateRect(), and ValidateRgn().
|
|
Definition at line 1358 of file dc.cpp. Referenced by CBRepaintButton(), MENU_ShowPopup(), RedrawWindow(), and STATIC_SetFont().
|
|
Definition at line 1408 of file dc.cpp. Referenced by IconTitleWndProc().
|
|
|
|
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().
|
|
|
|
Definition at line 1470 of file dc.cpp. Referenced by ScrollWindowEx().
|
|
Definition at line 1524 of file dc.cpp. Referenced by EDIT_EM_LineScroll(), LISTBOX_SetHorizontalPos(), LISTBOX_SetTopItem(), ScrollChildren(), and ScrollWindow().
|
|
Definition at line 1679 of file dc.cpp. Referenced by ScrollWindowEx().
|
|
|
|
|
|
|