473,473 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1649
> 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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.