Retrieving font information

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike

    #1

    Retrieving font information

    I am trying to retrieve (from unmanaged code) the font information from
    windows within a .NET application using SendMessage( hEnd, WM_GETFONT, 0,
    0 ).. However the return value is NULL every time....:-(

    Does anyone know whether this is actually possibly, or is it just a bug
    within Windows forms?

    Thanks in advance...

    Mike


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.744 / Virus Database: 496 - Release Date: 24/08/2004


  • Mihai N.

    #2
    Re: Retrieving font information

    > I am trying to retrieve (from unmanaged code) the font information from[color=blue]
    > windows within a .NET application using SendMessage( hEnd, WM_GETFONT, 0,
    > 0 ).. However the return value is NULL every time....:-(
    >
    > Does anyone know whether this is actually possibly, or is it just a bug
    > within Windows forms?[/color]
    Are you sure it does not use the system font?
    This is from the WM_GETFONT documentation:
    "The return value is a handle to the font used by the control, or NULL if the
    control is using the system font."

    --
    Mihai
    -------------------------
    Replace _year_ with _ to get the real email

    Comment

    • Mike

      #3
      Re: Retrieving font information

      Yes, I am sure.
      I am using a sample application that I wrote so I can change the font on the
      form design view.

      Mike

      "Mihai N." <nmihai_year_20 00@yahoo.com> wrote in message
      news:Xns9557E5C C7859MihaiN@204 .127.199.17...[color=blue][color=green]
      > > I am trying to retrieve (from unmanaged code) the font information from
      > > windows within a .NET application using SendMessage( hEnd, WM_GETFONT,[/color][/color]
      0,[color=blue][color=green]
      > > 0 ).. However the return value is NULL every time....:-(
      > >
      > > Does anyone know whether this is actually possibly, or is it just a bug
      > > within Windows forms?[/color]
      > Are you sure it does not use the system font?
      > This is from the WM_GETFONT documentation:
      > "The return value is a handle to the font used by the control, or NULL if[/color]
      the[color=blue]
      > control is using the system font."
      >
      > --
      > Mihai
      > -------------------------
      > Replace _year_ with _ to get the real email[/color]


      ---
      Outgoing mail is certified Virus Free.
      Checked by AVG anti-virus system (http://www.grisoft.com).
      Version: 6.0.747 / Virus Database: 499 - Release Date: 01/09/2004


      Comment

      Working...