Dialog Icon

I need to know how to use the icon on the Dialog.
I got the command runing but the imig dose not apere.
Am I soposto use the case command?

What icon, what dialog? A message box? Please be more specific.
Not a MessageBox a dialog. The ones that you can make things with.
I see. So this icon you speak of: Is it the icon the shows up in the upper left corner of a dialog box? Sometimes referred to as the control box?
its like the button. or a control box.
here

CONTROL "",1001,"ICON",ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,3,2,121,14
What you show is the resource file line that represents a control. It seems that you want to decorate a dialog box with an image. Is this correct? If it is, let me get up to speed in resource files because I rarely ever create dialogs and windows in C++.
To put an icon in a dialog from a resource file, you provide the proper statement in the resource file, like this --

ICON IDI_HALFMOON_RIGHT, IDC_STATIC, 14, 15, 32, 30, SS_ICON

This assumes that you have already defined the icon previously in the resource file, like this --

IDI_HALFMOON_RIGHT ICON "half_moon_blue_right.ico"

This also assumes that you have #defined the icon in a header file, like this --

#define IDI_HALFMOON_RIGHT 101
Thanks
Last edited on
Topic archived. No new replies allowed.