Results 1 to 4 of 4

Thread: callback

  1. #1

    Thread Starter
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    callback

    Im want to enumerate fonts. I need a callback function. How do you make a callback function in C++? Thanks
    Matt

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    LRESULT CALLBACK WhatEver(WhatEverParmsYouNeed)
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's not necessarily LRESULT. The documentation for EnumFontFamilies will give you the specs for the user-supplied function.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Yep:
    PHP Code:
    int CALLBACK EnumFontFamProc(
      
    ENUMLOGFONT FAR *lpelf,  // pointer to logical-font data
      
    NEWTEXTMETRIC FAR *lpntm,  // pointer to physical-font data
      
    int FontType,            // type of font
      
    LPARAM lParam            // pointer to application-defined data
    ); 
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width