Y
Yan Yang
Guest
I created a static control to display different images, see the code below.
CStatic m_ctrlImage;
CRect rectImage(rectTree.left, rectTree.bottom, rectTree.right, rectTree.bottom + 200);
m_ctrlImage.Create(NULL, WS_CHILD | SS_BITMAP | WS_VISIBLE | SS_REALSIZEIMAGE | SS_CENTERIMAGE, rectImage, this, IDC_IMAGE);
The image can be displayed in the static control, but there is no border around the rectangular area of the static control. How to create a border around a static control?
Thanks in advance.
Continue reading...
CStatic m_ctrlImage;
CRect rectImage(rectTree.left, rectTree.bottom, rectTree.right, rectTree.bottom + 200);
m_ctrlImage.Create(NULL, WS_CHILD | SS_BITMAP | WS_VISIBLE | SS_REALSIZEIMAGE | SS_CENTERIMAGE, rectImage, this, IDC_IMAGE);
The image can be displayed in the static control, but there is no border around the rectangular area of the static control. How to create a border around a static control?
Thanks in advance.
Continue reading...