   How to use CreateFont()
  I have been looking at the CreateFont() function at msdn, but i just cant seem to get it work, could somebody show me to use it please.   
  What are you trying to do and what error messages (if any) you have got ?I think most of the MSDN documentations are quite straight-forward, what compiler/IDE are you using ?   ;  The key is to pass as many default values into the function as physically possible. That means the following flags in the appropriate places:FW_DONTCAREDEFAULT_CHARSETOUT_DEFAULT_PRECISCLIP_DEFAULT_PRECISDEFAULT_QUALITYDEFAULT_PITCHPass in 0 for width, escapement, and orientation. You can use some of the FW_ flags, like FW_BOLD for bold text. Italic, Underline, and Strike-out are all BOOL parameters, pass TRUE or FALSE as you like.That leaves you with the font size, which is the height, and the font name. Simplifies things quite a bit.   