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