Article View: comp.windows.ms.programmer
Article #1598Re: SDK scrolling lists with fixed width fonts? - Summary
From: Wim Rijnsburger
Date: Mon, 11 Mar 1991 08:36
Date: Mon, 11 Mar 1991 08:36
19 lines
1127 bytes
1127 bytes
Thanks to all who responded to my question. It was a very good tip of bonneau@hyper.hyper.com (Paul Bonneau) to use the SETFONT message. This approach was straight forward and appeared very simple to implement (what seldom can be said of SDK facilities). Here comes the essential part of my code: hFixedFont = GetStockObject(OEM_FIXED_FONT); SendDlgItemMessage(hMyDialog, LB_SECTOR, WM_SETFONT, hFixedFont, FALSE) That's all you need to get fixed-pitch font in dialog items! Wim. ---------- Netherlands Energy Research Foundation, ECN -------------- Wim Rijnsburger email: RIJNSBURGER@ECN.NL P.O. Box 1, 1755 ZG Petten, Holland phone: +31 2246 4673
Technical Details
Message-ID:
<1991Mar11.083658.27758@ecn.nl>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!ecn!wimShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!ecn!wim From: wim@ecn.nl (Wim Rijnsburger) Newsgroups: comp.windows.ms.programmer Subject: Re: SDK scrolling lists with fixed width fonts? - Summary Message-ID: <1991Mar11.083658.27758@ecn.nl> Date: 11 Mar 91 08:36:58 GMT Reply-To: rijnsburger@ecn.nl (Wim Rijnsburger) Organization: Netherlands Energy Research Foundation ECN Lines: 19