Im want to enumerate fonts. I need a callback function. How do you make a callback function in C++? Thanks
Printable View
Im want to enumerate fonts. I need a callback function. How do you make a callback function in C++? Thanks
LRESULT CALLBACK WhatEver(WhatEverParmsYouNeed)
It's not necessarily LRESULT. The documentation for EnumFontFamilies will give you the specs for the user-supplied function.
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
);