Thread: How to create a working font box?

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    14

    Lightbulb How to create a working font box?

    Greetings.
    Can anybody tell me how to put a working font box into a program using the Win32 API? I have initialized my struct and passed it to the correct function (?) so that when I compile the program (a text editor) I get a font choice on the menu and when it is chosen an error message comes up saying something like
    "There are no fonts currently installed on this computer".
    This is not the case, as Notepad and other programs involving fonts work perfectly in this area. What is wrong?

    I would post the source code, but all of my work is on another computer which I cannot access at the moment. Also, this was tested quite a while ago, so I cannot be too specific, but hopefully you'll know what I'm talking about. Incidentally, I use DevC++ (version 5, I think).

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    14
    Thank you...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't create child windows
    By OnionKnight in forum Windows Programming
    Replies: 4
    Last Post: 04-10-2011, 04:13 PM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. Bounding Box Collision...not working
    By psychopath in forum Game Programming
    Replies: 4
    Last Post: 05-31-2005, 06:31 AM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. My computer has replaced all menu/dialog box text with a weird font
    By deathstryke in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-27-2002, 08:31 AM