Re: [Dev-C++] Adding icons to dialog boxes
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Joe B. <jo...@cy...> - 2000-12-04 15:49:50
|
Please don't send any more e-mails @ my address. ----- Original Message ----- From: loll <cp...@th...> To: <dev...@li...> Sent: Wednesday, November 29, 2000 9:45 PM Subject: [Dev-C++] Adding icons to dialog boxes > Hi, > > Im trying to add an icon to a dialog box. As you can probably tell I am new > to all this. > > When Dev c++ starts the project it includes an icon in the resource file. > I have been able to make a dialog box work with text and edit boxes etc. > however each time I try to add an icon to the dialog box in the resource > editor it refuses to compile the program. > > At the top of the resource file the line: > 500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE > "C:/DEV-C++/Icon/Documentation.ico" > > > the dialog code in the resource looks like: > > 105 DIALOG 70, 0, 110, 70 > STYLE WS_VISIBLE | WS_SYSMENU | WS_POPUP | WS_CAPTION | DS_MODALFRAME > CAPTION "About" > FONT 12,"arialnb.ttf" > BEGIN > ICON "myicon" 500, 30, 30 > PUSHBUTTON "OK", ID_CANCEL, 40, 50, 20, 10 > END > > The code works fine without the ICON command in the dialog, but with it in > there like that it wont compile. > > Can anyone help me here? > > Thanks > > Lawrence > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |