Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!zaphod.mps.ohio-state.edu!wuarchive!emory!rsiatl!nanovx!msa3b!kevin From: kevin@msa3b.UUCP (Kevin P. Kleinfelter) Newsgroups: comp.windows.ms Subject: Setting ListBox font Message-ID: <1355@msa3b.UUCP> Date: 25 Aug 90 16:14:05 GMT Organization: Management Science America, Inc., Atlanta, GA Lines: 19 How does one set the font for a listbox? The only thing I can find about changing fonts in TFM is for TextOut. i.e. SelectObject (hDC, hFont); TextOut (hDC, ...); The only way I can see to use this information would be with an owner-draw listbox (and that LOOKS like a lot of work to me). If I HAVE to, I'll change the font for the whole application. How does one do that? For each of these cases, it seems as though I ought to be able to SelectObject (display_context_used_by_window_or_application, hFont); but I do not know how to get at the display context (i.e. GetDC seems to be creating a NEW DC, and not returning the address of the DC to be used by the window or application). -- Kevin Kleinfelter @ Dun and Bradstreet Software, Inc (404) 239-2347 {emory,gatech}!nanovx!msa3b!kevin "Don't hold your finger on the button if the motor ain't goin' roundy-roundy."