Wednesday, May 21, 2008
Microsoft not bidding to buy Yahoo!!
Microsoft Chief Executive Steve Ballmer said Microsoft Corp is not looking to make a bid to buy Yahoo Inc but the company was in talks to make other types of deals with Yahoo.
Swami Amritachaitanya back in police custody
Swami Amritachaitanya alias Santosh Madhavan, charged with rape of minor girls, making of pornographic films and financial fraud, to police custody till May 23.
Tuesday, May 20, 2008
Abhaya case - 'truth tests' for priest and nuns

- Two nuns and a priest here were Thursday taken to Bangalore by the Central Bureau of Investigation (CBI) to undergo truth serum tests in connection with the mysterious death of a nun, Sister Abhaya, in 1992.
- The CBI team had earlier got permission from Ernakulam Chief Judicial Magistrate P.D. Sarangadharan to conduct the tests on Father Jose Putarika - a former Malayalam professor at the college where Abhaya studied - and two nuns who were inmates of Abhaya's convent.
- Abhaya, an inmate of Pious X hostel near here, was found dead in the well of the convent March 27, 1992. The CBI concluded in November 1996 that the death was a homicide but the murderer remained untraced.
- Thomas Kottor, the Diocesan chancellor of the Catholic Church here, was subjected to the truth serum test last month. Kottor was a professor of psychology in Abhaya's college. V.V. Augustine, a former police official, also underwent the test along with Kottor.
- The decision to conducts tests on Father Putarika and the two nuns was taken after the CBI claimed it got crucial information from the tests done on Kottor and Augustine.
- Three former CBI teams have failed to crack the mystery behind Abhaya's death. The Kerala Police had earlier dismissed the case as suicide.
- A new team was appointed in June after Joe Mon Puthenpurackal, a social activist who formed the Abhaya Action Committee in 1992, met the CBI director in May and demanded a fresh probe.
The 15-year-old case came back into the limelight in April after a newspaper reported that Abhaya's medical reports had been tampered with at the Chemical Examiners Laboratory in Thiruvananthapuram. - Two officials at the laboratory, who are alleged to have tampered with the report, are currently on bail. They had undergone a medical examination at the All India Institute of Medical Sciences (AIIMS) in Delhi last week under the supervision of CBI officials.
Thursday, April 10, 2008
Getting icon associated with a File
Getting icon associated with a File !!
HICON hSmallIcon = NULL;
HICON hBigIcon = NULL;
CComPtr DesktopPtr;
CComPtr psfDrives;
LPITEMIDLIST DrivePidl = NULL;
HRESULT hr = SHGetDesktopFolder(&DesktopPtr);
BSTR bstr = strFilename.AllocSysString();
hr = DesktopPtr->ParseDisplayName(NULL, NULL,(LPOLESTR)bstr,NULL, &DrivePidl, NULL);
::SysFreeString(bstr);
LPCITEMIDLIST pidlRelative = NULL;
hr = SHBindToParent (DrivePidl, IID_IShellFolder, (LPVOID*)&psfDrives, &pidlRelative);
CComPtr DiskIcon;
hr = psfDrives->GetUIObjectOf(NULL, 1, &pidlRelative,
IID_IExtractIcon, NULL, (LPVOID*)&DiskIcon);
DiskIcon->GetIconLocation(0,szFileName,MAX_PATH,&IconIndex,&uFlags);
DiskIcon->Extract(szFileName,IconIndex,&hBigIcon,&hSmallIcon,MAKELONG(16,16));
HICON hSmallIcon = NULL;
HICON hBigIcon = NULL;
CComPtr
CComPtr
LPITEMIDLIST DrivePidl = NULL;
HRESULT hr = SHGetDesktopFolder(&DesktopPtr);
BSTR bstr = strFilename.AllocSysString();
hr = DesktopPtr->ParseDisplayName(NULL, NULL,(LPOLESTR)bstr,NULL, &DrivePidl, NULL);
::SysFreeString(bstr);
LPCITEMIDLIST pidlRelative = NULL;
hr = SHBindToParent (DrivePidl, IID_IShellFolder, (LPVOID*)&psfDrives, &pidlRelative);
CComPtr
hr = psfDrives->GetUIObjectOf(NULL, 1, &pidlRelative,
IID_IExtractIcon, NULL, (LPVOID*)&DiskIcon);
DiskIcon->GetIconLocation(0,szFileName,MAX_PATH,&IconIndex,&uFlags);
DiskIcon->Extract(szFileName,IconIndex,&hBigIcon,&hSmallIcon,MAKELONG(16,16));
Get selected item in Tree control
Get selected item in Tree control
HTREEITEM hCurrent = m_tree.GetNextItem(TVI_ROOT, TVGN_CARET);
While(hCurrent)
{
//do your code here
hCurrent = m_tree. GetNextItem(hCurrent, TVGN_NEXT);
}
HTREEITEM hCurrent = m_tree.GetNextItem(TVI_ROOT, TVGN_CARET);
While(hCurrent)
{
//do your code here
hCurrent = m_tree. GetNextItem(hCurrent, TVGN_NEXT);
}
Get selected item in Tree control
Get selected item in Treecontrol
HTREEITEM hCurrent = m_tree.GetNextItem(TVI_ROOT, TVGN_CARET);
CString strName= m_tree.GetItemText(hCurrent);
UINT nData= m_tree.Data(hCurrent);
HTREEITEM hCurrent = m_tree.GetNextItem(TVI_ROOT, TVGN_CARET);
CString strName= m_tree.GetItemText(hCurrent);
UINT nData= m_tree.Data(hCurrent);
How to disable tabcontrol?
How to disable tab control?
Draw text over tabcontrol with grey shade…
CDC *pDC;
pDC=this->GetDC();
pDC->SelectObject(GetFont());
pDC->SetBkMode(TRANSPARENT);
if (FALSE==bEnable)
{
pDC->SetTextColor(GetSysColor(COLOR_GRAYTEXT));
rect.top -= ::GetSystemMetrics(SM_CYEDGE);
pDC->DrawText(tcItem.pszText, rect, SINGLELINEDT_VCENTERDT_CENTER);
}
ReleaseDC(pDC);
Draw text over tabcontrol with grey shade…
CDC *pDC;
pDC=this->GetDC();
pDC->SelectObject(GetFont());
pDC->SetBkMode(TRANSPARENT);
if (FALSE==bEnable)
{
pDC->SetTextColor(GetSysColor(COLOR_GRAYTEXT));
rect.top -= ::GetSystemMetrics(SM_CYEDGE);
pDC->DrawText(tcItem.pszText, rect, SINGLELINEDT_VCENTERDT_CENTER);
}
ReleaseDC(pDC);
Subscribe to:
Posts (Atom)