if (iColumn == abs(iColumnLast)) // a repeat so we switch directions?
{
iColumn = -iColumnLast;
}
pThis->m_iSortedCol = iColumn;
pSortInfo->iColumn = iColumn;
*pResult = 0;
}
void CDlgWinMgr::OnButtonclear()
{
DoClear();
SetButtonStates();
}
void CDlgWinMgr::DoClear()
{
m_pWndList->Reset();
m_ctlListWinMgr.DeleteAllItems();
}
afx_msg void CDlgWinMgr::OnNotify( NMHDR * pNotifyStruct, LRESULT * result )
{
result; // UNREFD
pNotifyStruct; // UNREFD
/*
WM_NOTIFY
idCtrl = (int) wParam;
pnmh = (LPNMHDR) lParam;
TTN_GETDISPINFO
lpnmtdi = (LPNMTTDISPINFO)lParam;
#define TTN_NEEDTEXT TTN_GETDISPINFO
Sent by a tooltip control to retrieve information needed to display a tooltip window. This notification supersedes the TTN_NEEDTEXT notification. This notification is sent in the form of a WM_NOTIFY message.
The return value for this notification is not used.
lpnmtdi
Address of an NMTTDISPINFO structure that identifies the tool that needs text and receives the requested information.
Fill the structure's appropriate fields to return the requested information to the tooltip control. If your message handler sets the uFlags field of the NMTTDISPINFO structure to TTF_DI_SETITEM, the tooltip control stores the information and will not request it again.