CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    23

    changing font in a edit control

    Hi everybody,
    How can i change the font of a edit control?




  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: changing font in a edit control

    Call m_txtMyTextBox.SetFont() with a pointer to the new font (which must stay in existence for as long as the text box does). This is a CWnd method, so as controls such as text boxes and buttons are derived from CWnd, it works.



    --
    Jason Teagle
    [email protected]

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