CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2001
    Location
    Turkmenistan
    Posts
    674

    CPropertySheet font

    Hi everyone!
    Does anybody know how programatically to change font of a CPropertySheet object, say, m_PrpSheet. I tried the following in OnInitDialog of the Property sheet:
    1) created desired font, myFont;
    2) then changed the font using m_PrpSheet.SetFont(&myFont);

    but nothing changed. Any idea?

    Any help is highly appreciated.
    Regards.
    Bayram.

  2. #2
    Join Date
    Oct 2000
    Location
    India
    Posts
    489
    Hi,

    What you are saying is that you want to change the
    font of the PropertySheet ???

    Why does it make a difference ?
    The things that are visible to the user are the property
    pages, so you should be changing the property pages
    font.

  3. #3
    Join Date
    Apr 2001
    Location
    Turkmenistan
    Posts
    674

    Unhappy

    Thanks a lot for hint.
    My property pages are set to myFont font by default. I do it from Resource view tab before I compile the project. But there is no result either. I think the font of a prop. page depends on the one of the prop sheet. To see it, try to create a dialog an place on this dialog an Edit control, then change the font of the dialog. The font of the Edit control will change automatically.

    Any idea?
    Bayram.
    Last edited by bayram; May 21st, 2002 at 12:20 PM.

  4. #4
    Join Date
    Apr 2001
    Location
    Turkmenistan
    Posts
    674
    Come on, guys!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured