From: Cosmin T. <co...@cs...> - 2001-03-28 15:51:39
|
Greg Chicares <chi...@mi...> wrote: > Pedro A ARANDA wrote: > > > > 1) When compiling resources, I had to add a > > #define IDC_STATIC -1 > > which doesn't seem to be defined anywhere. > > This looks like a user-defined macro that is not a standard part > of windows. It is not part of WINAPI, but of MFC (Microsoft Foundation Classes). I wouldn't be suprised if the resource editor would use MFC-based definitions even when MFC is not used. To have access to it, you need to #include <afxres.h>, but you might not have this file if you don't have MFC installed. MFC is not implemented by Mingw. IDC_STATIC is the only IDC_ symbol defined by "afxres.h", the others are prefixed with AFX_IDC_. That's why I have the impression that IDC_STATIC should have been defined in the WINAPI headers, but M$ added the symbol only later, and it added it to MFC. > > 2) The new M$ tools to edit resources seem to add an additional > > parameter to the FONT definition in DIALOG resources and windres > > chokes at that. Just an example of the offending line > > > > FONT 8, "MS Sans Serif", 0, 0,0x1 > > The only ms documentation I can easily put my hands on doesn't > mention any extra parameters: > http://msdn.microsoft.com/library/psdk/winui/rc_13lg.htm > FONT pointsize, "typeface" > Can you point to public documentation of this new syntax? I don't know about this one, but it might be as well a MFC extension, recognized by the their resource compiler. Cosmin |