I have the following resource (a dialog box with a picture frame in it, intended to display a picture known as "IDB_SUNPIC"):
I get the message:
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDD_SUNPAGE DIALOG 0, 0, 490, 352
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_FIXEDSYS | WS_VISIBLE | WS_BORDER |
WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
CAPTION "Latest Sun"
FONT 8, "Ms Shell Dlg 2"
CONTROL IDB_SUNPIC, IDC_SUNFRAME, WC_STATIC, SS_BITMAP, 30, 12, 341, 236
I know what this means, but I am confused as to how I define WC_STATIC. If I do this:
error RC2104 : undefined keyword or key name: WC_STATIC
...The button I press to open the dialog box does not work. What do I need to do? Is there a different way to display images in dialog boxes and frames?
#define WC_STATIC -2