Changeset 1513 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Oct 30, 1999, 11:19:47 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r1511 r1513 1 /* $Id: win32wbase.cpp,v 1.6 7 1999-10-29 16:06:56 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.68 1999-10-30 09:19:45 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 420 420 hwndLinkAfter = ((cs->style & (WS_CHILD|WS_MAXIMIZE)) == WS_CHILD) 421 421 ? HWND_BOTTOM : HWND_TOP; 422 #endif423 424 #if 0425 //TODO426 /* Call the WH_CBT hook */427 428 if (HOOK_IsHooked( WH_CBT ))429 {430 CBT_CREATEWNDA cbtc;431 LRESULT ret;432 433 cbtc.lpcs = cs;434 cbtc.hwndInsertAfter = hwndLinkAfter;435 ret = unicode ? HOOK_CallHooksW(WH_CBT, HCBT_CREATEWND, Win32Hwnd, (LPARAM)&cbtc)436 : HOOK_CallHooksA(WH_CBT, HCBT_CREATEWND, Win32Hwnd, (LPARAM)&cbtc);437 if (ret)438 {439 TRACE_(win)("CBT-hook returned 0\n");440 wndPtr->pDriver->pFinalize(wndPtr);441 retvalue = 0;442 goto end;443 }444 }445 422 #endif 446 423 … … 1256 1233 return NULL; 1257 1234 } 1258 / ***********************************************************************/1259 / ***********************************************************************/1235 //****************************************************************************** 1236 //****************************************************************************** 1260 1237 VOID Win32BaseWindow::subclassScrollBars(BOOL subHorz,BOOL subVert) 1261 1238 { … … 1596 1573 1597 1574 case WM_GETTEXT: //TODO: SS_ICON controls 1598 lstrcpynW((LPWSTR)lParam, windowNameW, wParam); 1599 return min(wndNameLength, wParam); 1575 { 1576 LRESULT result; 1577 char *str = (char *) malloc(wParam + 1); 1578 result = DefWindowProcA(Msg, wParam, (LPARAM)str ); 1579 lstrcpynAtoW( (LPWSTR)lParam, str, wParam ); 1580 free(str); 1581 return result; 1582 } 1600 1583 1601 1584 case WM_SETTEXT: 1602 if(!fInternalMsg) { 1603 return SetWindowTextW((LPWSTR)lParam); 1585 { 1586 if(!fInternalMsg) 1587 { 1588 LRESULT result; 1589 char *aText = (char *) malloc((lstrlenW((LPWSTR)lParam)+1)*sizeof(WCHAR)); 1590 *aText = 0; 1591 lstrcpyWtoA(aText, (LPWSTR) lParam); 1592 result = SetWindowTextA(aText); 1593 free(aText); 1594 return result; 1604 1595 } 1605 1596 else return 0; 1597 } 1606 1598 1607 1599 default: … … 1902 1894 dprintf(("Win32BaseWindow::SetIcon %x", hIcon)); 1903 1895 if(OSLibWinSetIcon(OS2HwndFrame, hIcon) == TRUE) { 1904 SendMessageA(WM_SETICON, hIcon, 0); 1896 //TODO: Wine does't send these. Correct? 1897 // SendMessageA(WM_SETICON, ICON_BIG, hIcon); 1905 1898 return TRUE; 1906 1899 }
Note:
See TracChangeset
for help on using the changeset viewer.