|
-
June 3rd, 1999, 06:32 AM
#1
How to set any font directories to CFontDialog
I want to create a specific Font dialog box which can select the font from any directory ( not windows\font ).
thank's
-
June 3rd, 1999, 06:54 AM
#2
Re: How to set any font directories to CFontDialog
Why would the fonts be anywhere other than WINDOWS/FONTS?
-
June 3rd, 1999, 07:01 AM
#3
Re: How to set any font directories to CFontDialog
Because my application Have to select few fonts which are installed in a specific directory
-
June 4th, 1999, 01:58 AM
#4
Re: How to set any font directories to CFontDialog
I did a little experimenting with CFontDialog, and I'm afraid the answer is grim. Because CFontDialog uses the underlying API to show the font dialog, everything is buried deep in the API. There is no handy way to redirect it. It most likely uses the EnumFontFamilies() API call which does all the hard work. You might be able to install your own hook, but it doesn't seem worth it as you are still going to have to get details of the fonts in your own directory by hand - if that is even possible. You might just as well create your own dialogue box for the purpose. Sorry that wasn't what you wanted to hear.
You might be able to cheat by copying the fonts from the user directory into the WINDOWS/FONTS directory so that they APPEAR to be part fo the font list - you can always make a note of which files you copied over and remove them again later.
-
June 4th, 1999, 02:55 AM
#5
Re: How to set any font directories to CFontDialog
Thank you for your response.
D.Harroch
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|