Changeset 395


Ignore:
Timestamp:
Jul 25, 1999, 7:47:25 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

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

Legend:

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

    r392 r395  
    1 # $Id: makefile,v 1.20 1999-07-25 15:51:55 sandervl Exp $
     1# $Id: makefile,v 1.21 1999-07-25 17:47:24 sandervl Exp $
    22
    33#
     
    3030        windowword.obj gen_object.obj oslibwin.obj win32wndchild.obj \
    3131        controls.obj button.obj static.obj scroll.obj listbox.obj \
    32         combo.obj edit.obj \
     32        combo.obj edit.obj clipboard.obj winicon.obj \
    3333        oslibutil.obj oslibmsg.obj windlg.obj \
    3434        winprop.obj wingdi.obj oslibgdi.obj winaccel.obj winscrollbar.obj \
     
    9595winaccel.obj:     winaccel.cpp  $(PDWIN32_INCLUDE)\winres.h
    9696winscrollbar.obj: winscrollbar.cpp
     97winicon.obj:    winicon.cpp
    9798
    9899pmwindow.obj:   pmwindow.cpp win32class.h win32wnd.h win32dlg.h pmwindow.h win32wndchild.h $(PDWIN32_INCLUDE)\wprocess.h  oslibgdi.h
     
    109110
    110111winnonclient.obj: winnonclient.cpp
     112clipboard.obj:  clipboard.cpp
    111113
    112114clean:
  • TabularUnified trunk/src/user32/new/pmwindow.cpp

    r392 r395  
    1 /* $Id: pmwindow.cpp,v 1.15 1999-07-25 15:51:56 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.16 1999-07-25 17:47:24 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    553553    case WM_SEMANTICEVENT:
    554554    default:
    555         dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));
     555//        dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));
    556556        RestoreOS2TIB();
    557557        return WinDefWindowProc( hwnd, msg, mp1, mp2 );
     
    561561
    562562RunDefWndProc:
    563   dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));
     563//  dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));
    564564  RestoreOS2TIB();
    565565  return WinDefWindowProc( hwnd, msg, mp1, mp2 );
  • TabularUnified trunk/src/user32/new/user32.cpp

    r392 r395  
    1 /* $Id: user32.cpp,v 1.11 1999-07-25 15:51:56 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.12 1999-07-25 17:47:25 sandervl Exp $ */
    22
    33/*
     
    449449BOOL WIN32API SetRect( PRECT lprc, int nLeft, int nTop, int nRight, int  nBottom)
    450450{
    451 #ifdef DEBUG
    452     WriteLog("USER32:  SetRect\n");
    453 #endif
    454 
    455451    if (!lprc) return FALSE;
    456452    lprc->left   = nLeft;
     
    597593#endif
    598594    return O32_MsgWaitForMultipleObjects(arg1, arg2, arg3, arg4, arg5);
    599 }
    600 //******************************************************************************
    601 //******************************************************************************
    602 BOOL WIN32API ChangeClipboardChain( HWND arg1, HWND  arg2)
    603 {
    604 #ifdef DEBUG
    605     WriteLog("USER32:  ChangeClipboardChain\n");
    606 #endif
    607     return O32_ChangeClipboardChain(arg1, arg2);
    608595}
    609596//******************************************************************************
     
    624611//******************************************************************************
    625612//******************************************************************************
    626 BOOL WIN32API CloseClipboard(void)
    627 {
    628 #ifdef DEBUG
    629     WriteLog("USER32:  CloseClipboard\n");
    630 #endif
    631     return O32_CloseClipboard();
    632 }
    633 //******************************************************************************
    634 //******************************************************************************
    635 HICON WIN32API CopyIcon( HICON arg1)
    636 {
    637 #ifdef DEBUG
    638     WriteLog("USER32:  CopyIcon\n");
    639 #endif
    640     return O32_CopyIcon(arg1);
    641 }
    642 //******************************************************************************
    643 //******************************************************************************
    644 int WIN32API CountClipboardFormats(void)
    645 {
    646 #ifdef DEBUG
    647     WriteLog("USER32:  CountClipboardFormats\n");
    648 #endif
    649     return O32_CountClipboardFormats();
    650 }
    651 //******************************************************************************
    652 //******************************************************************************
    653613BOOL WIN32API CreateCaret( HWND arg1, HBITMAP arg2, int arg3, int  arg4)
    654614{
     
    669629//******************************************************************************
    670630//******************************************************************************
    671 HICON WIN32API CreateIcon( HINSTANCE arg1, INT arg2, INT arg3, BYTE arg4, BYTE arg5, LPCVOID arg6, LPCVOID arg7)
    672 {
    673 #ifdef DEBUG
    674     WriteLog("USER32:  CreateIcon\n");
    675 #endif
    676     return O32_CreateIcon(arg1, arg2, arg3, arg4, arg5, (const BYTE *)arg6, (const BYTE *)arg7);
    677 }
    678 //******************************************************************************
    679 //ASSERT dwVer == win31 (ok according to SDK docs)
    680 //******************************************************************************
    681 HICON WIN32API CreateIconFromResource(PBYTE presbits,  UINT dwResSize,
    682                                       BOOL  fIcon,     DWORD dwVer)
    683 {
    684  HICON hicon;
    685  DWORD OS2ResSize = 0;
    686  PBYTE OS2Icon    = ConvertWin32Icon(presbits, dwResSize, &OS2ResSize);
    687 
    688     hicon = O32_CreateIconFromResource(OS2Icon, OS2ResSize, fIcon, dwVer);
    689 #ifdef DEBUG
    690     WriteLog("USER32:  CreateIconFromResource returned %X (%X)\n", hicon, GetLastError());
    691 #endif
    692     if(OS2Icon)
    693         FreeIcon(OS2Icon);
    694 
    695     return(hicon);
    696 }
    697 //******************************************************************************
    698 //******************************************************************************
    699 HICON WIN32API CreateIconFromResourceEx(PBYTE presbits,  UINT dwResSize,
    700                                         BOOL  fIcon,     DWORD dwVer,
    701                                         int   cxDesired, int cyDesired,
    702                                         UINT  Flags)
    703 {
    704 #ifdef DEBUG
    705     WriteLog("USER32:  CreateIconFromResourceEx %X %d %d %X %d %d %X, not completely supported!\n", presbits, dwResSize, fIcon, dwVer, cxDesired, cyDesired, Flags);
    706 #endif
    707     return CreateIconFromResource(presbits, dwResSize, fIcon, dwVer);
    708 }
    709 //******************************************************************************
    710 //******************************************************************************
    711 HICON WIN32API CreateIconIndirect(LPICONINFO arg1)
    712 {
    713 #ifdef DEBUG
    714     WriteLog("USER32:  CreateIconIndirect\n");
    715 #endif
    716     return O32_CreateIconIndirect(arg1);
    717 }
    718 //******************************************************************************
    719 //******************************************************************************
    720631//******************************************************************************
    721632//******************************************************************************
     
    735646#endif
    736647    return O32_DestroyCursor(arg1);
    737 }
    738 //******************************************************************************
    739 //******************************************************************************
    740 BOOL WIN32API DestroyIcon( HICON arg1)
    741 {
    742 #ifdef DEBUG
    743     WriteLog("USER32:  DestroyIcon\n");
    744 #endif
    745     return O32_DestroyIcon(arg1);
    746 }
    747 //******************************************************************************
    748 //******************************************************************************
    749 BOOL WIN32API EmptyClipboard(void)
    750 {
    751 #ifdef DEBUG
    752     WriteLog("USER32:  EmptyClipboard\n");
    753 #endif
    754     return O32_EmptyClipboard();
    755648}
    756649//******************************************************************************
     
    780673//******************************************************************************
    781674//******************************************************************************
    782 UINT WIN32API EnumClipboardFormats(UINT arg1)
    783 {
    784 #ifdef DEBUG
    785     WriteLog("USER32:  EnumClipboardFormats\n");
    786 #endif
    787     return O32_EnumClipboardFormats(arg1);
    788 }
    789 //******************************************************************************
    790 //******************************************************************************
    791675BOOL WIN32API EnumWindows(WNDENUMPROC lpfn, LPARAM lParam)
    792676{
     
    901785//******************************************************************************
    902786//******************************************************************************
    903 HANDLE WIN32API GetClipboardData( UINT arg1)
    904 {
    905 #ifdef DEBUG
    906     WriteLog("USER32:  GetClipboardData\n");
    907 #endif
    908     return O32_GetClipboardData(arg1);
    909 }
    910 //******************************************************************************
    911 //******************************************************************************
    912 int WIN32API GetClipboardFormatNameA( UINT arg1, LPSTR arg2, int  arg3)
    913 {
    914 #ifdef DEBUG
    915     WriteLog("USER32:  GetClipboardFormatNameA %s\n", arg2);
    916 #endif
    917     return O32_GetClipboardFormatName(arg1, arg2, arg3);
    918 }
    919 //******************************************************************************
    920 //******************************************************************************
    921 int WIN32API GetClipboardFormatNameW(UINT arg1, LPWSTR arg2, int arg3)
    922 {
    923  int   rc;
    924  char *astring = UnicodeToAsciiString(arg2);
    925 
    926 #ifdef DEBUG
    927     WriteLog("USER32:  GetClipboardFormatNameW %s\n", astring);
    928 #endif
    929     rc = O32_GetClipboardFormatName(arg1, astring, arg3);
    930     FreeAsciiString(astring);
    931     return(rc);
    932 }
    933 //******************************************************************************
    934 //******************************************************************************
    935 HWND WIN32API GetClipboardOwner(void)
    936 {
    937 #ifdef DEBUG
    938     WriteLog("USER32:  GetClipboardOwner\n");
    939 #endif
    940     return O32_GetClipboardOwner();
    941 }
    942 //******************************************************************************
    943 //******************************************************************************
    944 HWND WIN32API GetClipboardViewer(void)
    945 {
    946 #ifdef DEBUG
    947     WriteLog("USER32:  GetClipboardViewer\n");
    948 #endif
    949     return O32_GetClipboardViewer();
    950 }
    951 //******************************************************************************
    952 //******************************************************************************
    953787UINT WIN32API GetDoubleClickTime(void)
    954788{
     
    966800#endif
    967801    return O32_GetForegroundWindow();
    968 }
    969 //******************************************************************************
    970 //******************************************************************************
    971 BOOL WIN32API GetIconInfo( HICON arg1, LPICONINFO  arg2)
    972 {
    973 #ifdef DEBUG
    974     WriteLog("USER32:  GetIconInfo\n");
    975 #endif
    976     return O32_GetIconInfo(arg1, arg2);
    977802}
    978803//******************************************************************************
     
    1018843//******************************************************************************
    1019844//******************************************************************************
    1020 HWND WIN32API GetOpenClipboardWindow(void)
    1021 {
    1022 #ifdef DEBUG
    1023     WriteLog("USER32:  GetOpenClipboardWindow\n");
    1024 #endif
    1025     return O32_GetOpenClipboardWindow();
    1026 }
    1027 //******************************************************************************
    1028 //******************************************************************************
    1029 int WIN32API GetPriorityClipboardFormat( PUINT arg1, int  arg2)
    1030 {
    1031 #ifdef DEBUG
    1032     WriteLog("USER32:  GetPriorityClipboardFormat\n");
    1033 #endif
    1034     return O32_GetPriorityClipboardFormat(arg1, arg2);
    1035 }
    1036 //******************************************************************************
    1037 //******************************************************************************
    1038845DWORD WIN32API GetQueueStatus( UINT arg1)
    1039846{
     
    1126933//******************************************************************************
    1127934//******************************************************************************
    1128 BOOL WIN32API IsClipboardFormatAvailable( UINT arg1)
    1129 {
    1130 #ifdef DEBUG
    1131     WriteLog("USER32:  IsClipboardFormatAvailable\n");
    1132 #endif
    1133     return O32_IsClipboardFormatAvailable(arg1);
    1134 }
    1135 //******************************************************************************
    1136 //******************************************************************************
    1137935BOOL WIN32API IsRectEmpty( const RECT * arg1)
    1138936{
     
    1181979//******************************************************************************
    1182980//******************************************************************************
    1183 BOOL WIN32API OpenClipboard( HWND arg1)
    1184 {
    1185 #ifdef DEBUG
    1186     WriteLog("USER32:  OpenClipboard\n");
    1187 #endif
    1188     return O32_OpenClipboard(arg1);
    1189 }
    1190 //******************************************************************************
    1191 //******************************************************************************
    1192981BOOL WIN32API PtInRect( const RECT * arg1, POINT  arg2)
    1193982{
     
    1199988//******************************************************************************
    1200989//******************************************************************************
    1201 UINT WIN32API RegisterClipboardFormatA( LPCSTR arg1)
    1202 {
    1203 #ifdef DEBUG
    1204     WriteLog("USER32:  RegisterClipboardFormatA\n");
    1205 #endif
    1206     return O32_RegisterClipboardFormat(arg1);
    1207 }
    1208 //******************************************************************************
    1209 //******************************************************************************
    1210 UINT WIN32API RegisterClipboardFormatW(LPCWSTR arg1)
    1211 {
    1212  UINT  rc;
    1213  char *astring = UnicodeToAsciiString((LPWSTR)arg1);
    1214 
    1215 #ifdef DEBUG
    1216     WriteLog("USER32:  RegisterClipboardFormatW %s\n", astring);
    1217 #endif
    1218     rc = O32_RegisterClipboardFormat(astring);
    1219     FreeAsciiString(astring);
    1220 #ifdef DEBUG
    1221     WriteLog("USER32:  RegisterClipboardFormatW returned %d\n", rc);
    1222 #endif
    1223     return(rc);
    1224 }
    1225 //******************************************************************************
    1226 //******************************************************************************
    1227990BOOL WIN32API ScreenToClient( HWND arg1, LPPOINT  arg2)
    1228991{
     
    12561019    dprintf(("USER32:  SetCaretPos\n"));
    12571020    return O32_SetCaretPos(arg1, arg2);
    1258 }
    1259 //******************************************************************************
    1260 //******************************************************************************
    1261 HANDLE WIN32API SetClipboardData( UINT arg1, HANDLE  arg2)
    1262 {
    1263     dprintf(("USER32:  SetClipboardData\n"));
    1264     return O32_SetClipboardData(arg1, arg2);
    1265 }
    1266 //******************************************************************************
    1267 //******************************************************************************
    1268 HWND WIN32API SetClipboardViewer( HWND arg1)
    1269 {
    1270     dprintf(("USER32:  SetClipboardViewer\n"));
    1271     return O32_SetClipboardViewer(arg1);
    12721021}
    12731022//******************************************************************************
  • TabularUnified trunk/src/user32/new/window.cpp

    r392 r395  
    1 /* $Id: window.cpp,v 1.11 1999-07-25 15:51:57 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.12 1999-07-25 17:47:25 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    621621    hwnd = Win32Window::Win32ToOS2Handle(hwnd);
    622622    return OSLibWinQueryWindowRect(hwnd, pRect);
    623 //    return O32_GetClientRect(hwnd, arg2);
    624623}
    625624//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.