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
    Location
    Antwerp, Belgium
    Posts
    136

    Font doesn't change in OnInitDialog.

    Hi,

    I'm writing a dialog box and I want to change the font of one of my static controls. When I change the font in the OnInitDialog it doesn't change immediately. It changes when I select control on my dialogbox.
    What am I doing wrong ?


  2. #2
    Join Date
    Apr 1999
    Posts
    27

    Re: Font doesn't change in OnInitDialog.

    Do you define your CFont or Font
    variable as local (in .H)? if you define as
    automatic varible (in your function)
    .somtime will fail


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