Ignore:
Timestamp:
Aug 30, 1999, 2:00:12 PM (26 years ago)
Author:
sandervl
Message:

Redesign; base class for all window types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/wingdi.cpp

    r724 r741  
    1 /* $Id: wingdi.cpp,v 1.10 1999-08-28 14:09:31 sandervl Exp $ */
     1/* $Id: wingdi.cpp,v 1.11 1999-08-30 11:59:54 sandervl Exp $ */
    22/*
    33 * Win32 Window graphics apis for OS/2
     
    1313#include <misc.h>
    1414
    15 #include <win32wnd.h>
     15#include <win32wbase.h>
    1616#include <oslibwin.h>
    1717#include <oslibgdi.h>
     
    2424HDC WIN32API BeginPaint(HWND hwnd, PPAINTSTRUCT lps)
    2525{
    26   Win32Window *window;
     26  Win32BaseWindow *window;
    2727  HDC hdc;
    2828
    29     window = Win32Window::GetWindowFromHandle(hwnd);
     29    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    3030    if(!window) {
    31         dprintf(("GetDC, window %x not found", hwnd));
    32         return 0;
     31    dprintf(("GetDC, window %x not found", hwnd));
     32    return 0;
    3333    }
    3434    window->MsgEraseBackGround(hdc);
     
    6464HDC WIN32API GetDC(HWND hwnd)
    6565{
    66   Win32Window *window;
     66  Win32BaseWindow *window;
    6767
    68    window = Win32Window::GetWindowFromHandle(hwnd);
     68   window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    6969   if(!window) {
    70         dprintf(("GetDC, window %x not found", hwnd));
     70    dprintf(("GetDC, window %x not found", hwnd));
    7171#ifdef OPEN32_GDI
    72         dprintf(("GetDC %x", hwnd));
    73         return O32_GetDC(0);
     72    dprintf(("GetDC %x", hwnd));
     73    return O32_GetDC(0);
    7474#else
    75         //desktop window?
    76         dprintf(("GetDC %x", hwnd));
    77         return OSLibWinGetPS(OSLIB_HWND_DESKTOP);
     75    //desktop window?
     76    dprintf(("GetDC %x", hwnd));
     77    return OSLibWinGetPS(OSLIB_HWND_DESKTOP);
    7878#endif
    7979   }
     
    110110HDC WIN32API GetWindowDC(HWND hwnd)
    111111{
    112   Win32Window *window;
     112  Win32BaseWindow *window;
    113113
    114    window = Win32Window::GetWindowFromHandle(hwnd);
     114   window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    115115   if(!window) {
    116116    dprintf(("GetWindowDC, window %x not found", hwnd));
Note: See TracChangeset for help on using the changeset viewer.