|
From: Eric K. <ek...@rz...> - 2001-11-10 18:13:59
|
"Phillip Susi" <ps...@cf...> wrote: > So the only thing wrong with the script is it needs to use windows.h ( or > maybe defines.h? ) instead of afxres.h? Everything else is a problem with > windres, which you are fixing? Cool! > Well, not exactly. I played a little more with the script and I found out that the following lines must be added: #include <winresrc.h> #include "resource.h" #define IDC_STATIC -1 The MS resouce compiler seems do this quietly. :-/ The missing definition of IDC_STATIC solves a lot of problems. Now LTEXT/RTEXT/CTEXT are okay. :-) Please try the attached version of 'Script1.rc'. I removed the last parameter of the FONT definitions of DIALOGEX dialogs. Another problem is a bitmap in IDD_DIALOG7. Windres doesn't like the name '103' (without quotes). changing it to '"#103"' (without single quotes but including double quotes) fixes the bug. The property dialogs don't appear within the tab-control. In the treeview you can see that they are children of the desktop window instead of children of the tab-control. I'll have a closer look at this. - Eric Kohl |