window doesn't paint or scroll properly after recieving WM_GETTEXT 
Author Message
 window doesn't paint or scroll properly after recieving WM_GETTEXT

My AIM logger is exhibiting a peculiar behavior: when I send the IM window a
WM_GETTEXTLENGTH and WM_GETTEXT message, sometimes (particularly after the
window has lost focus and I force a repaint by dragging another window over
it) the window does not repaint properly, and no longer automatically
scrolls when a new IM is recieved. Has anyone else seen this type of
behavior when using either of these API calls?

The code in question:

Public Function GetText(Window As Long) As String
Dim Cursor As String, Text As Long
Text& = SendMessage(Window&, WM_GETTEXTLENGTH, 0&, 0&)
Cursor$ = String(Text&, 0&)
Call SendMessageByString(Window&, WM_GETTEXT, Text& + 1, Cursor$)
GetText$ = Cursor$
End Function

The entire source code can be browsed here:

Sat, 01 Mar 2003 08:18:52 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Form doesn't display properly on user's PC

2. Documenter doesn't work properly in A2K

3. Why doesn't Access always add properly?

4. Form control doesn't repond properly?

5. Outlook doesn't properly start on external activation

6. Why doesn't OWA display this properly?

7. Select method doesn't work properly

8. Listbox w/ datasource doesn't sync properly

9. Small toolbar look - toolbar control doesn't work properly

10. AllocUnit() function doesn't work properly with NTFS

11. VBScript Eval function doesn't work properly

12. STMAdmin.dll to query NT Log doesn't seem to work properly


Powered by phpBB® Forum Software