home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4213 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: FONT in TEDITWINDOW 
  5. Distribution: world
  6. References: <1992Dec13.192501.466@uoft02.utoledo.edu>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 23
  11. Date: Mon, 14 Dec 1992 18:33:17 +0000
  12. Message-ID: <724357997snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1992Dec13.192501.466@uoft02.utoledo.edu> tdani@uoft02.utoledo.edu writes:
  16.  
  17. >        I am using Turbo C++ for Windows to write an app.
  18. >        It involves using a class derived from TEditWindow class. However i
  19. >am not able to find a way to change the default Font of the text in the Edit
  20. >Window.
  21. >        Any ideas? Suggestions as to how to solve this problem.
  22. >Tushar Dani
  23. >Univ. of Toledo
  24. >
  25. >
  26. I've no experience of Turbo C++, but the "normal" way to change the font
  27. used by an edit control is to create the logical font you'd like to use
  28. in the edit control, then send the control a "WM_SETFONT" message, passing
  29. the font handle as the "wParam" argument of the message.
  30. -- 
  31. --------------------------------------------------------------------------
  32. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  33. | Warrington, UK                           | BIX: cmarriott              |
  34. | (Still awaiting inspiration              | CIX: cmarriott              |
  35. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  36. --------------------------------------------------------------------------
  37.  
  38.