Changeset 3215
- Timestamp:
- Mar 24, 2000, 6:12:20 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/user32/clipboard.cpp ¶
r2804 r3215 1 /* $Id: clipboard.cpp,v 1. 5 2000-02-16 14:34:06 sandervlExp $ */1 /* $Id: clipboard.cpp,v 1.6 2000-03-24 17:12:19 cbratschi Exp $ */ 2 2 3 3 /* … … 18 18 #include "win32wbase.h" 19 19 20 #define DBG_LOCALLOG 20 #define DBG_LOCALLOG DBG_clipboard 21 21 #include "dbglocal.h" 22 22 … … 30 30 if(!wndRemove) { 31 31 dprintf(("ChangeClipboardChain, window %x not found", hwndRemove)); 32 32 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 33 33 return 0; 34 34 } … … 36 36 if(!wndNext) { 37 37 dprintf(("ChangeClipboardChain, window %x not found", hwndNext)); 38 38 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 39 39 return 0; 40 40 } 41 41 dprintf(("USER32: ChangeClipboardChain\n")); 42 return O32_ChangeClipboardChain(wndRemove->getOS2FrameWindowHandle(), 42 return O32_ChangeClipboardChain(wndRemove->getOS2FrameWindowHandle(), 43 43 wndNext->getOS2FrameWindowHandle()); 44 44 } … … 80 80 //****************************************************************************** 81 81 //****************************************************************************** 82 int WIN32API GetClipboardFormatNameA( UINT arg1, LPSTR arg2, int arg3) 83 { 84 dprintf(("USER32: GetClipboardFormatNameA %s\n", arg2)); 85 return O32_GetClipboardFormatName(arg1, arg2, arg3); 86 } 87 //****************************************************************************** 88 //****************************************************************************** 89 int WIN32API GetClipboardFormatNameW(UINT arg1, LPWSTR arg2, int arg3) 90 { 91 int rc; 92 char *astring = UnicodeToAsciiString(arg2); 93 94 dprintf(("USER32: GetClipboardFormatNameW %s\n", astring)); 95 rc = O32_GetClipboardFormatName(arg1, astring, arg3); 96 FreeAsciiString(astring); 97 return(rc); 82 int WIN32API GetClipboardFormatNameA(UINT format,LPSTR lpszFormatName,int cchMaxCount) 83 { 84 dprintf(("USER32: GetClipboardFormatNameA %d\n",format)); 85 return O32_GetClipboardFormatName(format,lpszFormatName,cchMaxCount); 86 } 87 //****************************************************************************** 88 //****************************************************************************** 89 int WIN32API GetClipboardFormatNameW(UINT format,LPWSTR lpszFormatName,int cchMaxCount) 90 { 91 int rc; 92 char *astring = (CHAR*)malloc(cchMaxCount); 93 94 dprintf(("USER32: GetClipboardFormatNameW %d\n",format)); 95 rc = O32_GetClipboardFormatName(format,astring,cchMaxCount); 96 if (rc) AsciiToUnicode(astring,lpszFormatName); 97 free(astring); 98 return(rc); 98 99 } 99 100 //****************************************************************************** … … 109 110 window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndOwner); 110 111 if(!window) { 111 112 112 //an OS/2 window probably owns the clipboard, we pretend nobody owns it 113 return NULL; 113 114 } 114 115 return window->getWindowHandle(); … … 126 127 window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndViewer); 127 128 if(!window) { 128 129 129 //probably an OS/2 window, we pretend it's nobody 130 return NULL; 130 131 } 131 132 return window->getWindowHandle(); … … 143 144 window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwnd); 144 145 if(!window) { 145 146 146 //probably an OS/2 window, we pretend it's nobody 147 return NULL; 147 148 } 148 149 return window->getWindowHandle(); … … 171 172 if(!window) { 172 173 dprintf(("OpenClipboard, window %x not found", hwnd)); 173 174 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 174 175 return 0; 175 176 } … … 214 215 if(!wndnew) { 215 216 dprintf(("OpenClipboard, window %x not found", hwndNew)); 216 217 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 217 218 return 0; 218 219 } … … 222 223 wndold = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndOld); 223 224 if(!wndold) { 224 225 //probably an OS/2 window, so pretend it's nobody 225 226 return 0; 226 227 } -
TabularUnified trunk/src/user32/scroll.cpp ¶
r2834 r3215 1 /* $Id: scroll.cpp,v 1.3 5 2000-02-20 18:28:33cbratschi Exp $ */1 /* $Id: scroll.cpp,v 1.36 2000-03-24 17:12:20 cbratschi Exp $ */ 2 2 /* 3 3 * Scrollbar control … … 689 689 } 690 690 691 static LRESULT SCROLL_Destroy(HWND hwnd,WPARAM wParam,LPARAM lParam) 692 { 693 SCROLLBAR_INFO* infoPtr = (SCROLLBAR_INFO*)GetInfoPtr(hwnd); 694 695 free(infoPtr); 696 697 return 0; 698 } 699 691 700 /*********************************************************************** 692 701 * SCROLL_HandleScrollEvent … … 1105 1114 return SCROLL_Create(hwnd,wParam,lParam); 1106 1115 1116 case WM_DESTROY: 1117 return SCROLL_Destroy(hwnd,wParam,lParam); 1118 1107 1119 case WM_LBUTTONDOWN: 1108 1120 case WM_LBUTTONUP: … … 1480 1492 if (!win32wnd) return FALSE; 1481 1493 1494 //CB: does Win32 send a WM_STYLECHANGED message? 1482 1495 switch(nBar) 1483 1496 { 1484 case SB_CTL:1497 case SB_CTL: 1485 1498 ShowWindow(hwnd,fShow ? SW_SHOW:SW_HIDE); 1486 1499 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.