πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.owl
Article #58

Re: Control OWNER_DRAW

#58
From: beyler
Date: Mon, 16 Mar 1998 00:00
25 lines
1127 bytes


Martin Truchon <martin.truchon@videotron.ca> a οΏ½crit dans l'article
<350730B1.7347521A@videotron.ca>...
> Hi,
> 
> I want to use a StaticText control in a dialog box (with is very common)
> but I want to use a Font that is different from the Font used by the
> dialog box.
> 
> For example : The dialog box use the Arial 10 and I want to show a
> message using Arial 24.
> 
> I tried to create an OwnerDraw control but have some trouble to find a
> solution.

Instead of using owner draw You should use SetWindowFont(HFONT,bool) it's
easier !

-- 
O.Beyler
beyler@chez.com
tel 01 42 40 83 36
France
Technical Details
Message-ID: <01bd50b6$27338640$62bdfe40@belphegor.sav>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <350730B1.7347521A@videotron.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 108ebe,dffdf539611a0b5
X-Google-Attributes: gid108ebe,public
X-Google-Thread: fe201,dffdf539611a0b5
X-Google-Attributes: gidfe201,public
From: "beyler" <beyler@chez.com>
Subject: Re: Control OWNER_DRAW
Date: 1998/03/16
Message-ID: <01bd50b6$27338640$62bdfe40@belphegor.sav>
X-Deja-AN: 334481541
References: <350730B1.7347521A@videotron.ca>
Organization: sav
Newsgroups: comp.os.ms-windows.programmer.tools.owl,borland.public.cpp.owl