|
From: Carlos d. M. <cg...@wo...> - 2002-10-02 10:10:55
|
First, Your mail is messed with the text you're answering and your answer, and it's really hard to read it. You shall define a LOGFONT before the use of the definition of the CHOOSEFONT and initialize the lpLogFont field of CHOOSEFONT with it. And then you select this on a HFONT, with CreateFontIndirect(LPLOGFONT). Anyway, if it's there and I didn't see it, check the CHOOSEFONT specification at your Win32 API reference, perhaps there is some field you should initialize due to the use of some option and you're not initializing it. I did a simple experiment with it and I had the same error (win2k), till I realized that I hadn't initialize the Flags field of CHOOSEFONT, and then it disappeared. |