FIX: CRecordView:OnMove May Incorrectly Return FALSELast reviewed: September 18, 1997Article ID: Q124568 |
1.50
WINDOWS
kbprg kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSIn some cases, CRecordView::OnMove may incorrectly return FALSE instead of TRUE. In some MDI applications, this can cause OnMove to be called twice.
RESOLUTIONOverride OnMove in your class derived from CRecordView and return TRUE.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 1.51 for Windows.
MORE INFORMATIONBecause CRecordView::OnMove is mapped through ON_COMMAND_EX macro, it should always return TRUE as it does handle the message.
Sample Code
// CMyRecordView is derived from CRecordViewBOOL CMyRecordView::OnMove(UINT nIDMoveCommand) { CRecordView::OnMove(nIDMoveCommand); return(TRUE);}
|
Additional reference words: 1.50 2.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |