WM_SETTEXT should return TRUE on success.

This commit is contained in:
Andreas Mohr 2000-11-29 00:02:46 +00:00 committed by Alexandre Julliard
parent fa940f5989
commit 94a6832b04
4 changed files with 9 additions and 5 deletions

View File

@ -1887,7 +1887,7 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message,
lphc->wState &= ~CBF_NOEDITNOTIFY;
return ret;
}
else return CB_ERR;
else return CB_ERR;
case WM_CUT:
case WM_PASTE:
case WM_COPY:

View File

@ -242,6 +242,7 @@ LRESULT WINAPI StaticWndProc( HWND hWnd, UINT uMsg, WPARAM wParam,
else
DEFWND_SetTextA( wndPtr, (LPCSTR)lParam );
InvalidateRect( hWnd, NULL, FALSE );
lResult = 1; /* success. FIXME: check text length */
break;
case WM_SETFONT:

View File

@ -611,6 +611,7 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
DEFWND_SetTextA( wndPtr, (LPCSTR)PTR_SEG_TO_LIN(lParam) );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 );
result = 1; /* success. FIXME: check text length */
break;
default:
@ -677,6 +678,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam,
DEFWND_SetTextA( wndPtr, (LPCSTR)lParam );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */
result = 1; /* success. FIXME: check text length */
break;
default:
@ -733,6 +735,7 @@ LRESULT WINAPI DefWindowProcW(
DEFWND_SetTextW( wndPtr, (LPCWSTR)lParam );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */
result = 1; /* success. FIXME: check text length */
break;
default:

View File

@ -1505,7 +1505,7 @@ LRESULT WINAPI DefFrameProc16( HWND16 hwnd, HWND16 hwndMDIClient,
WIN_ReleaseWndPtr(wndPtr);
HeapFree( GetProcessHeap(), 0, text );
}
return 0;
return 1; /* success. FIXME: check text length */
case WM_SETFOCUS:
SetFocus(hwndMDIClient);
@ -1662,7 +1662,7 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL );
retvalue = 0;
retvalue = 1; /* success. FIXME: check text length */
goto END;
case WM_CLOSE:
@ -1862,7 +1862,7 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message,
if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL );
retvalue = 0;
retvalue = 1; /* success. FIXME: check text length */
goto END;
case WM_GETMINMAXINFO:
@ -1940,7 +1940,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL );
retvalue = 0;
retvalue = 1; /* success. FIXME: check text length */
goto END;
case WM_GETMINMAXINFO: