|
|
От: |
Виталий
|
|
| Дата: | 07.04.04 17:44 | ||
| Оценка: | 4 (1) | ||
SS_ICON Use this style always for cursors and icons.
SS_CENTERIMAGE Use to center in the static control. If the image is larger than the static control, it will be clipped. If it is smaller than the static control, the empty space around the image will be filled with the background color of the static control.
CStatic myStatic; // Create a child icon static control. myStatic.Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_ICON|SS_CENTERIMAGE, CRect(10,10,150,50), pParentWnd); // Set the icon of the static control to be the system // question mark icon. myStatic.SetIcon( ::LoadIcon(NULL, IDI_QUESTION) );