Board index » Visual Studio » CListView Problem

CListView Problem

Visual Studio137
Hi,

I have a strange problem that 'just appeared' a couple of days ago.



reserveanalyst.com/images/ListView.jpg



Both views are derived from my CLView:CListView. I also have a CLView

object in another view not derived and driven from the doc that's fine.



I can only hope this rings a bell as I've shut _everything_ off in the

report view, (toolbars, initializing columns, writing rows, styles,

tooltips, anything my derived class does.) The only thing I'm doing that

is different than MFC is my doc manager deletes and creates views in the

main frame, but I doubt this has anything to do with it as it has worked

fine for years and is the same code for the other listviews.



Symptoms are, control doesn't sit properly in the client area (jpg), no

scroll bars, my save 'column positions stuff', (at the afx level, not in

the view), reads the column positions but doesn't set them.



Otherwise, everything about the view works perfectly. And when the stuff

is turned on this view has a lot going on.



One more hint, that little white gap at the right arrow triggers the

first row tooltip. Only the gap.



Thanks, Dan.



--

lakeweb.net

ReserveAnalyst.com

No EXTRA stuff for email.

What can you see if you can't see it all...


-
 

Re:CListView Problem



Found it!



My wife gave me the hint. (No, she doesn't know a thing about

programming but will look over my shoulder and ask every kind of

question.) So I commented all my message map and the problem went away.



I had:

ON_MESSAGE( ID_VREPORT_CLOSEUP, OnCloseUP )



And ID_VREPORT_CLOSEUP has been 131 for a very very long time. Same as

WM_NCCALCSIZE. Of course, user messages should never be < WM_USER. I

still have no idea why it only became a problem just two days ago.



Turns out the column positions problem was arbitrary, I had these calls

reversed:



CreateColumns( ReportViewcols );

AfxSetWinPos( _T("ReportView"), this );



Best, Dan.



Dan Bloomquist wrote:

Quote


Hi,

I have a strange problem that 'just appeared' a couple of days ago.



reserveanalyst.com/images/ListView.jpg">reserveanalyst.com/images/ListView.jpg



Both views are derived from my CLView:CListView. I also have a CLView

object in another view not derived and driven from the doc that's fine.



I can only hope this rings a bell as I've shut _everything_ off in the

report view, (toolbars, initializing columns, writing rows, styles,

tooltips, anything my derived class does.) The only thing I'm doing that

is different than MFC is my doc manager deletes and creates views in the

main frame, but I doubt this has anything to do with it as it has worked

fine for years and is the same code for the other listviews.



Symptoms are, control doesn't sit properly in the client area (jpg), no

scroll bars, my save 'column positions stuff', (at the afx level, not in

the view), reads the column positions but doesn't set them.



Otherwise, everything about the view works perfectly. And when the stuff

is turned on this view has a lot going on.



One more hint, that little white gap at the right arrow triggers the

first row tooltip. Only the gap.



Thanks, Dan.







--

lakeweb.net">lakeweb.net

ReserveAnalyst.com">ReserveAnalyst.com

No EXTRA stuff for email.

What can you see if you can't see it all...



-