473,394 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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
Nov 22 '05 #1
2 1646
> 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."

--
Mihai
-------------------------
Replace _year_ with _ to get the real email
Nov 22 '05 #2
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." <nm**************@yahoo.com> wrote in message
news:Xn*******************@204.127.199.17...
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."

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

---
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
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
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...
1
by: bill yeager | last post by:
I would like to place the currently selected date (retrieved from the database) on a calendar control which is embedded inside a datagrid. However, I can't find the ID of the control to do so....
2
by: 4Ankit | last post by:
hello all, i am having some difficulty retrieving information from my form. I want to add content in my table but the content i want to add to the table is what the user inputs in my form. ...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.