Retrieving font information

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

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
 
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?
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."
 
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
 
Back
Top