struct CResizeInfo { int ctlID; // Specifies the identifier of the control int left; // Specifies the change in the position of the left edge // of the object relative to the total change in the parent window抯 width. int top; // Specifies the change in the position of the top // of the object relative to the total change in the parent window抯 height. int width; // Specifies the change in the width of the object // relative to the total change in the parent window抯 width. int height; // Specifies the change in the height of the object // relative to the total change in the parent window抯 height. };
m_SearchBtn.SetIcon(IDI_SEARCH);
m_Address.SetIcon(IDI_FRIENDS);
m_MainMenu.SetIcon(IDI_VM);// m_resize.Create( this, TRUE,300); CResizeInfo rInfo[] =
{
// id l t w h
{ IDC_MYLIST, 0, 0, 300, 300 },
{ IDC_MESS_SINGLE_SEND, 0, 300, 300, 0 },
{ IDC_ONLINE_SEARCH, 0, 300, 300, 0 },
{ IDC_ADDRESS_LIST , 0, 300, 300, 0 },
{ IDC_MAIN_MANU , 0, 300, 300, 0 },
};
先写文字(编辑对话框时写),然后再插图,如上是插图(在文字的左边)
{
int ctlID; // Specifies the identifier of the control
int left; // Specifies the change in the position of the left edge
// of the object relative to the total change in the parent window抯 width.
int top; // Specifies the change in the position of the top
// of the object relative to the total change in the parent window抯 height.
int width; // Specifies the change in the width of the object
// relative to the total change in the parent window抯 width.
int height; // Specifies the change in the height of the object
// relative to the total change in the parent window抯 height.
};