[Dev-C++] Adding icons to dialog boxes
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: loll <cp...@th...> - 2000-11-29 19:48:07
|
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 |