| Add a BMP to IE Toolbar(Skin) |
| 1) Open the following key in windows registry Key:- HKEY_CURRENT_USER\Software\Microsift\Internet Explorer\Toolbar 2) Create a new Value "BackBitmap" Data type: String "REG_SZ",(If it doesn't exist) 3)Set the value to the path of your bitmap (Eg,C:\your folder\file.bmp) 4)Restart your computer. |
| Here is the sample code to set the registry key, |
|
char sPath[50]=("SOFTWARE\\microsoft\\Internet Explorer\\Toolbar"); int retCode; HKEY hKey; HKEY hKeyRoot = HKEY_CURRENT_USER; TCHAR data[255]="C:\\your_path\\bmp_file"; DWORD type = REG_SZ; DWORD datasize= strlen(data); retCode = RegOpenKeyEx (hKeyRoot, sPath, 0,KEY_ALL_ACCESS, &hKey); if (retCode == (DWORD)ERROR_SUCCESS) { if(RegSetValueEx(hKey,"BackBitmap",NULL,type, (LPBYTE)data,datasize)==(DWORD)ERROR_SUCCESS) RegCloseKey(hKey); } |