コード例 #1
0
void COwnerDrawnListControl::OnHdnDividerdblclick(NMHDR *pNMHDR, LRESULT *pResult)
{
    CWaitCursor wc;
    LPNMHEADER phdr = reinterpret_cast<LPNMHEADER>(pNMHDR);

    int subitem = phdr->iItem;

    AdjustColumnWidth(subitem);

    *pResult = 0;
}
コード例 #2
0
void CColumnTreeView::OnHeaderDividerDblClick(NMHDR* pNMHDR, LRESULT* /*pResult*/)
{
	NMHEADER* pNMHeader = (NMHEADER*)pNMHDR;

	AdjustColumnWidth(pNMHeader->iItem, TRUE);
}