Prev: CreateFile() for USB
Next: CListCtrl multiline cells
From: chinthamani on 31 Aug 2005 08:45 Hai I want to change the font size and type of the static text. Is it posible to change the font in the static text. If posible how can we change the font of the static text. Regards S.Vinodh Noel (Bangalore)
From: Ajay Kalra on 31 Aug 2005 10:31 You can use SetFont to change font of any CWnd derived object. You need to make sure that the font object lives as long as the window. You can do this by making font(CFont) object member of the dialog which contains this CStatic. -------- Ajay Kalra ajaykalra(a)yahoo.com
From: Tom Serface on 31 Aug 2005 10:35 http://www.codeproject.com/staticctrl/CFontStatic.asp http://www.codeproject.com/staticctrl/clabel.asp Both of these are extensions of CStatic that may do what you need. Tom "chinthamani" <vinodh_noel(a)yahoo.com> wrote in message news:218a22ae49069d3fa32f84c60f9e8ece(a)localhost.talkaboutsoftware.com... > Hai > I want to change the font size and type of the static text. Is it > posible to change the font in the static text. If posible how can we > change the font of the static text. > > Regards > S.Vinodh Noel > (Bangalore) >
From: Bob Moore on 31 Aug 2005 14:48 On Wed, 31 Aug 2005 08:45:08 -0400, chinthamani wrote: > I want to change the font size and type of the static text. Is it >posible to change the font in the static text. If posible how can we >change the font of the static text. http://bobmoore.mvps.org/Win32/framed_tip066.htm -- Bob Moore http://bobmoore.mvps.org/ (this is a non-commercial site and does not accept advertising) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Do not reply via email unless specifically requested to do so. Unsolicited email is NOT welcome and will go unanswered. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: Jeff Partch [MVP] on 31 Aug 2005 18:36
"Ajay Kalra" <ajaykalra(a)yahoo.com> wrote in message news:1125498680.704658.228720(a)g14g2000cwa.googlegroups.com... > > You can use SetFont to change font of any CWnd derived object. > Well, you can call SetFont on any CWnd derived object, but whether it will change the font depends on the underlying WNDCLASS handling WM_SETFONT (and using the HFONT to paint its text). :) -- Jeff Partch [VC++ MVP] |