Take a look at those pics before I run the program http://www.**--****.com/ ~area51/before.gif after I run the program = notice I lost my AIM icon.... it overlapped the AIM icon. http://www.**--****.com/ ~area51/after.gif Im trying to replace my clock with the static. my program is MFC based. here is code: void CStart_Button_ChangerDlg::OnClock2() { hTaskbar = FindWindowEx(NULL, NULL, _T("Shell_TrayWnd"), NULL); if (hTaskbar) { hTray = FindWindowEx(hTaskbar, NULL, _T("TrayNotifyWnd"), NULL); hStaticCtrl = ::GetDlgItem(m_hWnd,IDC_CLOCK); ReplaceClock(); SetTimer(55,1000,0); } } void CStart_Button_ChangerDlg::ReplaceClock() { CRect rcTray; CRect rcStaticCtrl, rcNewStaticCtrl; ::GetWindowRect(hTray, &rcTray); ::GetWindowRect(hClockText, &rcStaticCtrl); //::SendMessage(hTray, WM_SIZE, 0, 0); rcNewStaticCtrl.left = rcTray.right - rcTray.left - rcStaticCtrl.Width() - 0; rcNewStaticCtrl.top = 2; rcNewStaticCtrl.bottom = rcStaticCtrl.bottom; rcNewStaticCtrl.right = rcStaticCtrl.right; CWnd *pStaticCtrlWnd = GetDlgItem(IDC_CLOCK); pStaticCtrlWnd->MoveWindow(&rcNewStaticCtrl); pStaticCtrlWnd->ModifyStyle(0, 0, SWP_NOSIZE); //HWND hWndStatic = GetDlgItem(IDC_CLOCK); RECT rect; CBrush hBrush; CDC* hdc; PAINTSTRUCT ps; hdc = BeginPaint(&ps); hdc->SaveDC(); hBrush.CreateSolidBrush(RGB(0,0,0)); hdc->SelectObject(hBrush); GetClientRect(&rect); hdc->Rectangle(&rect); hdc->SetTextColor(RGB(0,255,255)); hdc->SetBkColor(RGB(0,0,0)); //hdc->SetBkMode(TRANSPARENT); //hdc->SetBkMode(OPAQUE); //hdc->RestoreDC(-1); EndPaint(&ps); //::InvalidateRect(hTray, NULL, FALSE); //::InvalidateRect(::GetParent(hTray), NULL, TRUE); SetWindowLong(hTray, GWL_STYLE, WS_CHILD|WS_VISIBLE|SS_BLACKRECT); ::SetParent(hClockText, hTray); }