文件名称:MFC重写的QQ式窗口
文件大小:3.78MB
文件格式:RAR
更新时间:2014-07-16 12:54:54
MFC
CString strName,strPath,strFilename; HICON hIcon1,hIcon2,hIcon3,hIcon4; HICON hIcon5,hIcon6,hIcon7,hIcon8; strPath = GetModulePath(); strName = strPath +"\\skin\\commteab.ico"; hIcon1 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); strName = strPath +"\\skin\\icon2.ico"; hIcon2 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); strName = strPath +"\\skin\\menu.ico"; hIcon3 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); strName = strPath +"\\skin\\info3.ico"; hIcon4 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); strName = strPath +"\\skin\\newpersonal.ico"; hIcon5 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); strName = strPath +"\\skin\\addressbook_new1.ico"; hIcon6 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); strName = strPath +"\\skin\\search.ico"; hIcon7 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); strName = strPath +"\\skin\\menu_addressbook.ico"; hIcon8 = (HICON)LoadImage(NULL, strName, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); //create and initial ImageList for ToolBar m_imageTool.Create(24, 24, ILC_COLOR8|ILC_MASK, 0, 2); m_imageTool.Add(hIcon5); m_imageTool.Add(hIcon6); m_imageTool.Add(hIcon7); m_imageTool.Add(hIcon8);