🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1518

Re: SDK scrolling lists with fixed width fonts?

#1518
From: Paul Bonneau
Date: Wed, 06 Mar 1991 15:31
18 lines
1259 bytes
In article <1991Mar4.162732.18183@ecn.nl> rijnsburger@ecn.nl (Wim Rijnsburger) writes:
>
>Does anyone know if there is a method to create scrolling lists with
>fixed width font items, without choosing another font for the other
>dialog items?
>
Send the WM_SETFONT message to the listbox when you get the
WM_INITDIALOG message (see the description of WM_SETONT in
the reference volume 1 of the SDK).

Otherwise, you can use GetDlgBaseUnits() to help you
calculate the size of the text in the list.  This routine
returns a (dx, dy) pair that computes an "average" scale
factor to convert from charcter-width/4 and
character-height/8 units to logical units (pixels if you are
using MM_TEXT mode--the default).

cheers - Paul Bonneau.
Technical Details
Message-ID: <1991Mar6.153142.20607@hyper.hyper.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!maytag!watmath!hyper.hyper.com!bonneau
References: <1991Mar4.162732.18183@ecn.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!maytag!watmath!hyper.hyper.com!bonneau
From: bonneau@hyper.hyper.com (Paul Bonneau)
Newsgroups: comp.windows.ms.programmer
Subject: Re: SDK scrolling lists with fixed width fonts?
Message-ID: <1991Mar6.153142.20607@hyper.hyper.com>
Date: 6 Mar 91 15:31:42 GMT
References: <1991Mar4.162732.18183@ecn.nl>
Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,)
Organization: HyperCube Inc.
Lines: 18