Change Start Button Image using code?
Does anyone know how to change the start button image through some API call?
I manage to get the Start Button handle, but fail to change the image... :( enclose is the sample code
PHP Code:
HWND hWnd=NULL;
HBITMAP hBitmap=NULL;
long x=0;
hWnd = FindWindow("Shell_TrayWnd",NULL);
if (hWnd != NULL)
{
hWnd = FindWindowEx(hWnd, NULL, "Button", NULL);
if (hWnd != NULL)
{
hBitmap = static_cast<HBITMAP>(LoadImage(hInst, (LPCTSTR)IDB_MYBUTTON, IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE));
x = SendMessage(hWnd, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap);
}
}
regaards,
Re: Change Start Button Image using code?
Quote:
Originally posted by Chris
Does anyone know how to change the start button image through some API call?
The image for the Start button is in some DLL, I think user32.dll. So if you modify the icon in there and restart the pooter, the icon will change too.