VERIFY() fails in PreSubclassWindow()
Closed this issue · 1 comments
GoogleCodeExporter commented
I'm a beginner of MFC, please forgive me if I make some stupid mistakes.
The two listctrl will work normally if use CListCtrl, but when using
CGridListCtrlEx, the second one should be CListCtrl or the program will
break.
The extra bug is that first CGridListCtrlEx cannot create normally now,
but the code is almost same as the previous test program.
Thanks anyway for the help.
Original issue reported on code.google.com by lwi...@gmail.com
on 19 Sep 2008 at 9:37
Attachments:
GoogleCodeExporter commented
The problem is that your second CListCtrl is created without LVS_REPORT style.
The CGridListCtrlEx validates that one is using the proper styles, but the
validating is faulty and causes an ASSERT a whole different place. Seems one
should
not use ASSERT / VERIFY during PreSubclassWindow().
I have updated the CGridListCtrlEx so it now uses DebugBreak() in
PreSubclassWindow
().
Original comment by sweaty1
on 19 Sep 2008 at 11:22
- Changed title: VERIFY() fails in PreSubclassWindow()
- Changed state: Fixed