|
From: <ten...@ne...> - 2003-08-12 16:38:15
|
#include <windows.h> stefan kuhn wrote: >Hi w.y., > >IDC_STATIC is just a macro that *you* define for the resource ID you want to >give that resource element. A resource ID can be any integer number (well, >almost). >It is used to refer to that resource element later in the program, for >example getting a HANDLE to that element by the resource ID. >Normally, these macros are generated automatically for the developer when >using a resource editor. > >So just include your own "resourceIds.h" that contains the line > >#define IDC_STATIC 1000 > >then include this header file in the resource file AND in your code that >refers to your resource element (for example the GetDlgItem() function). > >Make sure you give each resource element a unique resource ID. > >Hope this helps! > >Best, >Stefan Kuhn > >----- Original Message ----- >From: "w.y." <yok...@ve...> >To: <dev...@li...> >Sent: Tuesday, August 12, 2003 12:21 PM >Subject: Re: [Dev-C++] Resource file problem > > > > >>"w.y." wrote: >> >> >>>// GROUPBOX "Blah...",IDC_STATIC,7,7,225,52 >>>// CTEXT "There is no help...\r\n\r\nha ha ha ha", >>>IDC_STATIC,16,18,144,33 >>> >>> >>Ok, apparently IDC_STATIC is not defined in winresrc.h >>Just using -1 in its place will let my program work with the >>taunting. :) >> >>But looking at an example at msdn, it looks like it may be defined in >>this: >> >>#include "afxres.h" >> >>I searched every file in the include directory for any file >>containing "IDC_STATIC" but it was not found. >>No files contain "IDC_" either... >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by: Free pre-built ASP.NET sites including >>Data Reports, E-commerce, Portals, and Forums are available now. >>Download today and enter to win an XBOX or Visual Studio .NET. >> >> >> >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > >>_______________________________________________ >>Dev-cpp-users mailing list >>Dev...@li... >>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> >> > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |