Changeset 395
- Timestamp:
- Jul 25, 1999, 7:47:25 PM (26 years ago)
- 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.2 0 1999-07-25 15:51:55sandervl Exp $1 # $Id: makefile,v 1.21 1999-07-25 17:47:24 sandervl Exp $ 2 2 3 3 # … … 30 30 windowword.obj gen_object.obj oslibwin.obj win32wndchild.obj \ 31 31 controls.obj button.obj static.obj scroll.obj listbox.obj \ 32 combo.obj edit.obj \32 combo.obj edit.obj clipboard.obj winicon.obj \ 33 33 oslibutil.obj oslibmsg.obj windlg.obj \ 34 34 winprop.obj wingdi.obj oslibgdi.obj winaccel.obj winscrollbar.obj \ … … 95 95 winaccel.obj: winaccel.cpp $(PDWIN32_INCLUDE)\winres.h 96 96 winscrollbar.obj: winscrollbar.cpp 97 winicon.obj: winicon.cpp 97 98 98 99 pmwindow.obj: pmwindow.cpp win32class.h win32wnd.h win32dlg.h pmwindow.h win32wndchild.h $(PDWIN32_INCLUDE)\wprocess.h oslibgdi.h … … 109 110 110 111 winnonclient.obj: winnonclient.cpp 112 clipboard.obj: clipboard.cpp 111 113 112 114 clean: -
TabularUnified trunk/src/user32/new/pmwindow.cpp ¶
r392 r395 1 /* $Id: pmwindow.cpp,v 1.1 5 1999-07-25 15:51:56sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.16 1999-07-25 17:47:24 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 553 553 case WM_SEMANTICEVENT: 554 554 default: 555 dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));555 // dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd)); 556 556 RestoreOS2TIB(); 557 557 return WinDefWindowProc( hwnd, msg, mp1, mp2 ); … … 561 561 562 562 RunDefWndProc: 563 dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));563 // dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd)); 564 564 RestoreOS2TIB(); 565 565 return WinDefWindowProc( hwnd, msg, mp1, mp2 ); -
TabularUnified trunk/src/user32/new/user32.cpp ¶
r392 r395 1 /* $Id: user32.cpp,v 1.1 1 1999-07-25 15:51:56sandervl Exp $ */1 /* $Id: user32.cpp,v 1.12 1999-07-25 17:47:25 sandervl Exp $ */ 2 2 3 3 /* … … 449 449 BOOL WIN32API SetRect( PRECT lprc, int nLeft, int nTop, int nRight, int nBottom) 450 450 { 451 #ifdef DEBUG452 WriteLog("USER32: SetRect\n");453 #endif454 455 451 if (!lprc) return FALSE; 456 452 lprc->left = nLeft; … … 597 593 #endif 598 594 return O32_MsgWaitForMultipleObjects(arg1, arg2, arg3, arg4, arg5); 599 }600 //******************************************************************************601 //******************************************************************************602 BOOL WIN32API ChangeClipboardChain( HWND arg1, HWND arg2)603 {604 #ifdef DEBUG605 WriteLog("USER32: ChangeClipboardChain\n");606 #endif607 return O32_ChangeClipboardChain(arg1, arg2);608 595 } 609 596 //****************************************************************************** … … 624 611 //****************************************************************************** 625 612 //****************************************************************************** 626 BOOL WIN32API CloseClipboard(void)627 {628 #ifdef DEBUG629 WriteLog("USER32: CloseClipboard\n");630 #endif631 return O32_CloseClipboard();632 }633 //******************************************************************************634 //******************************************************************************635 HICON WIN32API CopyIcon( HICON arg1)636 {637 #ifdef DEBUG638 WriteLog("USER32: CopyIcon\n");639 #endif640 return O32_CopyIcon(arg1);641 }642 //******************************************************************************643 //******************************************************************************644 int WIN32API CountClipboardFormats(void)645 {646 #ifdef DEBUG647 WriteLog("USER32: CountClipboardFormats\n");648 #endif649 return O32_CountClipboardFormats();650 }651 //******************************************************************************652 //******************************************************************************653 613 BOOL WIN32API CreateCaret( HWND arg1, HBITMAP arg2, int arg3, int arg4) 654 614 { … … 669 629 //****************************************************************************** 670 630 //****************************************************************************** 671 HICON WIN32API CreateIcon( HINSTANCE arg1, INT arg2, INT arg3, BYTE arg4, BYTE arg5, LPCVOID arg6, LPCVOID arg7)672 {673 #ifdef DEBUG674 WriteLog("USER32: CreateIcon\n");675 #endif676 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 DEBUG690 WriteLog("USER32: CreateIconFromResource returned %X (%X)\n", hicon, GetLastError());691 #endif692 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 DEBUG705 WriteLog("USER32: CreateIconFromResourceEx %X %d %d %X %d %d %X, not completely supported!\n", presbits, dwResSize, fIcon, dwVer, cxDesired, cyDesired, Flags);706 #endif707 return CreateIconFromResource(presbits, dwResSize, fIcon, dwVer);708 }709 //******************************************************************************710 //******************************************************************************711 HICON WIN32API CreateIconIndirect(LPICONINFO arg1)712 {713 #ifdef DEBUG714 WriteLog("USER32: CreateIconIndirect\n");715 #endif716 return O32_CreateIconIndirect(arg1);717 }718 //******************************************************************************719 //******************************************************************************720 631 //****************************************************************************** 721 632 //****************************************************************************** … … 735 646 #endif 736 647 return O32_DestroyCursor(arg1); 737 }738 //******************************************************************************739 //******************************************************************************740 BOOL WIN32API DestroyIcon( HICON arg1)741 {742 #ifdef DEBUG743 WriteLog("USER32: DestroyIcon\n");744 #endif745 return O32_DestroyIcon(arg1);746 }747 //******************************************************************************748 //******************************************************************************749 BOOL WIN32API EmptyClipboard(void)750 {751 #ifdef DEBUG752 WriteLog("USER32: EmptyClipboard\n");753 #endif754 return O32_EmptyClipboard();755 648 } 756 649 //****************************************************************************** … … 780 673 //****************************************************************************** 781 674 //****************************************************************************** 782 UINT WIN32API EnumClipboardFormats(UINT arg1)783 {784 #ifdef DEBUG785 WriteLog("USER32: EnumClipboardFormats\n");786 #endif787 return O32_EnumClipboardFormats(arg1);788 }789 //******************************************************************************790 //******************************************************************************791 675 BOOL WIN32API EnumWindows(WNDENUMPROC lpfn, LPARAM lParam) 792 676 { … … 901 785 //****************************************************************************** 902 786 //****************************************************************************** 903 HANDLE WIN32API GetClipboardData( UINT arg1)904 {905 #ifdef DEBUG906 WriteLog("USER32: GetClipboardData\n");907 #endif908 return O32_GetClipboardData(arg1);909 }910 //******************************************************************************911 //******************************************************************************912 int WIN32API GetClipboardFormatNameA( UINT arg1, LPSTR arg2, int arg3)913 {914 #ifdef DEBUG915 WriteLog("USER32: GetClipboardFormatNameA %s\n", arg2);916 #endif917 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 DEBUG927 WriteLog("USER32: GetClipboardFormatNameW %s\n", astring);928 #endif929 rc = O32_GetClipboardFormatName(arg1, astring, arg3);930 FreeAsciiString(astring);931 return(rc);932 }933 //******************************************************************************934 //******************************************************************************935 HWND WIN32API GetClipboardOwner(void)936 {937 #ifdef DEBUG938 WriteLog("USER32: GetClipboardOwner\n");939 #endif940 return O32_GetClipboardOwner();941 }942 //******************************************************************************943 //******************************************************************************944 HWND WIN32API GetClipboardViewer(void)945 {946 #ifdef DEBUG947 WriteLog("USER32: GetClipboardViewer\n");948 #endif949 return O32_GetClipboardViewer();950 }951 //******************************************************************************952 //******************************************************************************953 787 UINT WIN32API GetDoubleClickTime(void) 954 788 { … … 966 800 #endif 967 801 return O32_GetForegroundWindow(); 968 }969 //******************************************************************************970 //******************************************************************************971 BOOL WIN32API GetIconInfo( HICON arg1, LPICONINFO arg2)972 {973 #ifdef DEBUG974 WriteLog("USER32: GetIconInfo\n");975 #endif976 return O32_GetIconInfo(arg1, arg2);977 802 } 978 803 //****************************************************************************** … … 1018 843 //****************************************************************************** 1019 844 //****************************************************************************** 1020 HWND WIN32API GetOpenClipboardWindow(void)1021 {1022 #ifdef DEBUG1023 WriteLog("USER32: GetOpenClipboardWindow\n");1024 #endif1025 return O32_GetOpenClipboardWindow();1026 }1027 //******************************************************************************1028 //******************************************************************************1029 int WIN32API GetPriorityClipboardFormat( PUINT arg1, int arg2)1030 {1031 #ifdef DEBUG1032 WriteLog("USER32: GetPriorityClipboardFormat\n");1033 #endif1034 return O32_GetPriorityClipboardFormat(arg1, arg2);1035 }1036 //******************************************************************************1037 //******************************************************************************1038 845 DWORD WIN32API GetQueueStatus( UINT arg1) 1039 846 { … … 1126 933 //****************************************************************************** 1127 934 //****************************************************************************** 1128 BOOL WIN32API IsClipboardFormatAvailable( UINT arg1)1129 {1130 #ifdef DEBUG1131 WriteLog("USER32: IsClipboardFormatAvailable\n");1132 #endif1133 return O32_IsClipboardFormatAvailable(arg1);1134 }1135 //******************************************************************************1136 //******************************************************************************1137 935 BOOL WIN32API IsRectEmpty( const RECT * arg1) 1138 936 { … … 1181 979 //****************************************************************************** 1182 980 //****************************************************************************** 1183 BOOL WIN32API OpenClipboard( HWND arg1)1184 {1185 #ifdef DEBUG1186 WriteLog("USER32: OpenClipboard\n");1187 #endif1188 return O32_OpenClipboard(arg1);1189 }1190 //******************************************************************************1191 //******************************************************************************1192 981 BOOL WIN32API PtInRect( const RECT * arg1, POINT arg2) 1193 982 { … … 1199 988 //****************************************************************************** 1200 989 //****************************************************************************** 1201 UINT WIN32API RegisterClipboardFormatA( LPCSTR arg1)1202 {1203 #ifdef DEBUG1204 WriteLog("USER32: RegisterClipboardFormatA\n");1205 #endif1206 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 DEBUG1216 WriteLog("USER32: RegisterClipboardFormatW %s\n", astring);1217 #endif1218 rc = O32_RegisterClipboardFormat(astring);1219 FreeAsciiString(astring);1220 #ifdef DEBUG1221 WriteLog("USER32: RegisterClipboardFormatW returned %d\n", rc);1222 #endif1223 return(rc);1224 }1225 //******************************************************************************1226 //******************************************************************************1227 990 BOOL WIN32API ScreenToClient( HWND arg1, LPPOINT arg2) 1228 991 { … … 1256 1019 dprintf(("USER32: SetCaretPos\n")); 1257 1020 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);1272 1021 } 1273 1022 //****************************************************************************** -
TabularUnified trunk/src/user32/new/window.cpp ¶
r392 r395 1 /* $Id: window.cpp,v 1.1 1 1999-07-25 15:51:57sandervl Exp $ */1 /* $Id: window.cpp,v 1.12 1999-07-25 17:47:25 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 621 621 hwnd = Win32Window::Win32ToOS2Handle(hwnd); 622 622 return OSLibWinQueryWindowRect(hwnd, pRect); 623 // return O32_GetClientRect(hwnd, arg2);624 623 } 625 624 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.