home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1665 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: tfj@apusapus.demon.co.uk (Trevor Jenkins)
  3. Path: sparky!uunet!pipex!demon!apusapus.demon.co.uk!tfj
  4. Subject: Which to use WM_CHAR or WM_PAINT?
  5. Distribution: world
  6. Organization: Job hunters use Parachute
  7. Lines: 22
  8. Date: Thu, 3 Sep 1992 22:30:47 +0000
  9. Message-ID: <715559447snx@apusapus.demon.co.uk>
  10. Sender: usenet@gate.demon.co.uk
  11.  
  12. [My apologies if this an FAQ but I haven't seen it discussed ANYWHERE.]
  13.  
  14. My application is supposed to accept keyboard input and then place the text
  15. characters in the client area of the window at the same position as the
  16. mouse cursor. [Basically I'm labelling a directed graph interactively.]
  17.  
  18. Nowhere in the SDK documents or in Conger's API bible have I seen any
  19. discussion of where the characters should be processed. In the 3.1 SDK
  20. there is a page and a half on how to handle keyboard input via the WM_CHAR
  21. message but the example only demonstrates that there might be a reason to
  22. filter out the TAB character. The examples for WM_PAINT all assume that
  23. text is being output from a string.
  24.  
  25. If anyone can offer advice upon how to proceed with echoing characters
  26. being typed onto the client area I'd appreciate some help.
  27.  
  28. -------------------------------------------------------------
  29. Trevor Jenkins                                   Radio: G6AJG
  30. 134 Frankland Rd, Croxley Green, Rickmansworth, WD3 3AU
  31. email: tfj@apusapus.demon.co.uk
  32. phone: +44 (0)923 776436
  33.  
  34.