1) Is it possible to add an icon to a program created from CreateDialog(). When using CreateWindowEx(), you can specify which icon to use, but not in CreateDialog().
2) I want to have a rectangular colored area, which can have any RGB color. I tried using a Static Rectangle control, but it can only have White/Gray/Black colors.
[EDIT]
I've tried using SetBkColor(), but for some reason I can't get the handle of the Static Rectangle when using GetDlgItem() (I made some tests). I'm sure I use the right dialog box handle and control identifier.
[/EDIT]