Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to set Font to entire Column?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set Font to entire Column?

 Post Reply Post Reply
Author
Message
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Topic: How to set Font to entire Column?
    Posted: 20 April 2011 at 6:53am
Hello CJ Team,

I want to set the Different font to the entire column (please see attached sample screen shot). I am using GetItemMetrics(..) to set the font in the sample you are using static CFont variable to set the font to the entire row but in my case I wanted to set the font column-wise. How can I set the font because when I use normal object of CFont it wont be set the font to the particular cell.

If you want to confirm what I am saying then you just remove "static" keyword from the following line (in function CMessageRecord::GetItemMetrics(..))

        static CFont m_fontStriked;
Then run the "ReportSample" application and select "Automatic Formation Sample"

-Mak


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.