Changeset 822 for trunk/src


Ignore:
Timestamp:
Sep 4, 1999, 9:51:47 PM (26 years ago)
Author:
sandervl
Message:

compile fixes

Location:
trunk/src/user32/new
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/makefile

    r821 r822  
    1 # $Id: makefile,v 1.42 1999-09-04 19:42:27 sandervl Exp $
     1# $Id: makefile,v 1.43 1999-09-04 19:51:46 sandervl Exp $
    22
    33#
     
    102102pmwindow.obj:   pmwindow.cpp win32class.h win32wbase.h win32dlg.h pmwindow.h win32wndchild.h $(PDWIN32_INCLUDE)\wprocess.h oslibgdi.h oslibwin.h
    103103win32class.obj: win32class.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h
    104 win32wbase.obj:   win32wbase.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h  $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h open32wbase.h
     104win32wbase.obj:   win32wbase.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h  $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h
    105105win32wnd.obj:   win32wnd.cpp win32class.h win32wbase.h win32wnd.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h  $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h oslibmenu.h
    106106win32dlg.obj:   win32dlg.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h
  • trunk/src/user32/new/pmwindow.cpp

    r819 r822  
    1 /* $Id: pmwindow.cpp,v 1.27 1999-09-04 17:56:40 dengert Exp $ */
     1/* $Id: pmwindow.cpp,v 1.28 1999-09-04 19:51:46 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    131131    case WM_CLOSE:
    132132        dprintf(("OS2: WM_CLOSE %x", hwnd));
    133         win32wnd->RemoveFakeOpen32();
     133//        win32wnd->RemoveFakeOpen32();
    134134        if(win32wnd->MsgClose()) {
    135135                goto RunDefWndProc;
  • trunk/src/user32/new/win32wbase.cpp

    r821 r822  
    1 /* $Id: win32wbase.cpp,v 1.7 1999-09-04 19:42:29 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.8 1999-09-04 19:51:46 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    429429#endif
    430430
    431   fakeWinBase.hwndThisObject = OS2Hwnd;
    432   fakeWinBase.pWindowClass = windowClass;
    433   *(PULONG)&fakeWinBase -= 0x90 - 8;
     431//  fakeWinBase.hwndThisObject = OS2Hwnd;
     432//  fakeWinBase.pWindowClass = windowClass;
     433//  *(PULONG)&fakeWinBase -= 0x90 - 8;
    434434//  SetFakeOpen32();
    435435
     
    18781878//******************************************************************************
    18791879//******************************************************************************
    1880 BOOL Win32BaseWindow::IsWindow()
    1881 {
    1882   return TRUE;
    1883 }
    1884 //******************************************************************************
    1885 //******************************************************************************
    18861880BOOL Win32BaseWindow::IsWindowEnabled()
    18871881{
     
    19111905//******************************************************************************
    19121906//******************************************************************************
    1913 int Win32BaseWindow::GetWindowTextLengthA()
    1914 {
    1915     return OSLibWinQueryWindowTextLength(OS2Hwnd);
    1916 }
    1917 //******************************************************************************
    1918 //******************************************************************************
    1919 int Win32BaseWindow::GetWindowTextA(LPSTR lpsz, int cch)
    1920 {
    1921     return OSLibWinQueryWindowText(OS2Hwnd, cch, lpsz);
     1907int Win32BaseWindow::GetWindowTextLength()
     1908{
     1909    return wndNameLength;
     1910}
     1911//******************************************************************************
     1912//******************************************************************************
     1913int Win32BaseWindow::GetWindowText(LPSTR lpsz, int cch)
     1914{
     1915    if(isUnicode == FALSE) {
     1916        strncpy(lpsz, windowNameA, cch);
     1917    }
     1918    else {
     1919        lstrcpynW((LPWSTR)lpsz, windowNameW, cch);
     1920    }
     1921    return wndNameLength;
    19221922}
    19231923//******************************************************************************
     
    19261926{
    19271927    if(lpsz == NULL)
    1928         return FALSE;
     1928        return FALSE;
    19291929
    19301930    if(isUnicode == FALSE) {
     
    19421942    wndNameLength = strlen(windowNameA)+1; //including 0 terminator
    19431943
    1944     if(OS2Hwnd)
    1945         return OSLibWinSetWindowText(OS2Hwnd, (LPSTR)windowNameA);
     1944    if(OS2HwndFrame)
     1945        return OSLibWinSetWindowText(OS2HwndFrame, (LPSTR)windowNameA);
    19461946
    19471947    return TRUE;
  • trunk/src/user32/new/win32wbase.h

    r821 r822  
    1 /* $Id: win32wbase.h,v 1.5 1999-09-04 19:42:29 sandervl Exp $ */
     1/* $Id: win32wbase.h,v 1.6 1999-09-04 19:51:47 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    1717
    1818#include <win32class.h>
    19 #include "open32wbase.h"
     19//#include "open32wbase.h"
    2020#include <gen_object.h>
    2121#include <win32wndchild.h>
     
    271271
    272272public:
    273        void SetFakeOpen32()    { WinSetDAXData (OS2Hwnd, &fakeWinBase); }
    274        void RemoveFakeOpen32() { WinSetDAXData (OS2Hwnd, NULL); }
    275 
    276   fakeOpen32WinBaseClass fakeWinBase;
     273//       void SetFakeOpen32()    { WinSetDAXData (OS2Hwnd, &fakeWinBase); }
     274//       void RemoveFakeOpen32() { WinSetDAXData (OS2Hwnd, NULL); }
     275
     276//  fakeOpen32WinBaseClass fakeWinBase;
    277277};
    278278
Note: See TracChangeset for help on using the changeset viewer.