home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!centerline!hroudland!cparker
- From: cparker@centerline.com (Charles Parker)
- Subject: Re: Changing font in edit controls
- Message-ID: <1992Aug31.225037.8846@centerline.com>
- Sender: news@centerline.com
- Nntp-Posting-Host: hroudland
- Reply-To: cparker@centerline.com
- Organization: CenterLine Software
- References: <1992Aug31.165928.14569@wam.umd.edu>
- Date: Mon, 31 Aug 1992 22:50:37 GMT
- Lines: 31
-
- In article 14569@wam.umd.edu, castanos@wam.umd.edu (Jose Alberto Castanos) writes:
- > Hello,
- >
-
- > I'm working on an ObjectWindows application that derives
- >a window from the TFileWindow class. I need to change the font
- >of the Editor window and cannot find a way to do this. According
- >to the ObjectWindows User's Guide this could be done, but no details
- >are given on how to do it.
- > My question is how can the font in an edit control be changed?
- >
-
- The only reason that I know the answer is that I asked the same question
- a couple weeks ago.
-
- Send a WM_SETFONT message to the TFileWindow's Editor->HWindow, as per:
-
- TFileWindow *foo;
-
- SendMessage(foo->Editor->HWindow,WM_SETFONT,...);
-
- I forget the rest of the message parms, but you can easily get them by
- hitting Ctrl-F1 while the cursor is on WM_SETFONT inside the IDE.
- One of them is a HFONT
-
- ---
- ---------------------------------------------------------
- cyberspace
- momma, don't let yer children grow up to be ^ cowboys ...
- ---------------------------------------------------------
-
-