+
+ if (bHideInactive)
+ {
+ /* FIXME: when the customize button is disabled, enable it. */
+ if(bShowClock)
+ {
+ /* FIXME: when the seconds checkbox is disabled, enable it. */
+ if(bShowSeconds)
+ lpTrayImageName = MAKEINTRESOURCE(IDB_SYSTRAYPROP_HIDE_SECONDS);
+ else
+ lpTrayImageName = MAKEINTRESOURCE(IDB_SYSTRAYPROP_HIDE_CLOCK);
+ }
+ else
+ {
+ /* FIXME: when the seconds checkbox is enabled, disable it it. */
+ lpTrayImageName = MAKEINTRESOURCE(IDB_SYSTRAYPROP_HIDE_NOCLOCK);
+ }
+ }
+ else
+ {
+ /* FIXME: when the customize button is enabled, disable it. */
+ if(bShowClock)
+ {
+ /* FIXME: when the seconds checkbox is disabled, enable it. */
+ if(bShowSeconds)
+ lpTrayImageName = MAKEINTRESOURCE(IDB_SYSTRAYPROP_SHOW_SECONDS);
+ else
+ lpTrayImageName = MAKEINTRESOURCE(IDB_SYSTRAYPROP_SHOW_CLOCK);
+ }
+ else
+ {
+ /* FIXME: when the seconds checkbox is enabled, disable it it. */
+ lpTrayImageName = MAKEINTRESOURCE(IDB_SYSTRAYPROP_SHOW_NOCLOCK);
+ }
+ }
+
+ if(lpTrayImageName)
+ {
+ if (pPropInfo->hTrayBitmap)
+ {
+ DeleteObject(pPropInfo->hTrayBitmap);
+ }
+
+ pPropInfo->hTrayBitmap = (HBITMAP)LoadImage(hExplorerInstance,
+ lpTrayImageName,
+ IMAGE_BITMAP,
+ 0,
+ 0,
+ LR_DEFAULTCOLOR);
+ if (pPropInfo->hTrayBitmap)
+ {
+ hwndTrayBitmap = GetDlgItem(pPropInfo->hTaskbarWnd,
+ IDC_TASKBARPROP_NOTIFICATIONBITMAP);
+ if (hwndTrayBitmap)
+ {
+ SendMessage(hwndTrayBitmap,
+ STM_SETIMAGE,
+ IMAGE_BITMAP,
+ (LPARAM)pPropInfo->hTrayBitmap);
+ }
+ }
+ }