PRB: SendMessage Fails for Some Messages (187918)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q187918 SYMPTOMS
The Sendmessage API function call will fail to give expected results for
some messages when the API Text Viewer declaration is used. For example,
the messages "WM_SETTEXT" and "LVM_SCROLL" will fail without returning any
error values.
CAUSE
Some messages expect the lParam to be passed as ByVal, while the API Text
Viewer declaration passes lParam as ByRef.
RESOLUTION
The declaration can be manually changed after copying the declaration.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb KB187918 |
---|
|