Are you trying to put the icon in the title bar or just load one to =
put somewhere inside the dialog box?
----- Original Message -----=20
From: loll=20
To: dev...@li...=20
Sent: Wednesday, November 29, 2000 11:45 AM
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=20
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.=20
however each time I try to add an icon to the dialog box in the =
resource=20
editor it refuses to compile the program.
At the top of the resource file the line:
500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE=20
"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=20
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
-------------------------------------------------------------------------=
-----
Link is external to the Privacyx.com System
|