Article View: comp.os.ms-windows.programmer.tools.owl
Article #11Re: help! How to get current DC ?
From: v-tcano AlfonsoJR
Date: Wed, 25 Oct 1995 16:33
Date: Wed, 25 Oct 1995 16:33
40 lines
1773 bytes
1773 bytes
For scale the fonts, you have the class TFont, in which constructor you
can specify the height, width, rotation, fontname, etc....
Try to use TDC and look what happen, I really don't understand why your
program writes out of the client window, and What do you mean with that?,
because you cannot write in another place.
Hope this is clear.
In article <45p8gg$if5@news.csus.edu>, wleong@sfsu.edu says...
>
>
>Okay, here's a newbie problem, say I have created a window, and
>I decided to write something to the window. I couldn't find an
>appropriate function so I decided to use TextOut.
>
>
>void TMyWindow::ShowText()
>{
> char *s="Text";
> TClientDC dc(*this);
>
> dc.TextOut(10,10,s,strlen(s));
>}
>
>And guess what, the text appear OUTSIDE the client window.
>
>I really am confused about what function to use. Can someone help me
>out here.
>
>Also, is there any where I can scale the text to any size/font type I
>want, instead of just getting a small tiny printout of the text.
>
>I have jump from classes to classes and still couldn't figure out a
>way of getting things right. Your reply is greatly appreciated.
>
>p/s: I am currently using BC4.5
>
--
The opinions expressed in this message are my own personal views
and do not reflect the official views of Microsoft Corporation.
Technical Details
Message-ID:
<46los8$nai@news2100.microsoft.com>Path:
arc1-ca.pugleaf.net!news.microsoft.com!newsReferences:
<45p8gg$if5@news.csus.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.microsoft.com!news From: v-tcano (AlfonsoJR) Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c++ Subject: Re: help! How to get current DC ? Date: 25 Oct 1995 16:33:12 GMT Organization: Microsoft Corporation Message-ID: <46los8$nai@news2100.microsoft.com> References: <45p8gg$if5@news.csus.edu> NNTP-Posting-Host: 157.55.121.129 Mime-Version: 1.0 X-Newsreader: WinVN 0.93.14