Thanks Mike, I had scanned your article and for some reason didn't think it was what I needed. It is EXACTLY what I needed, thanks. Since my derived CListView class IS A CListCtrl apparently, I'm using the ON_NOTIFY_REFLECT version. Embedding a CString pointer in the items lparam, and using DrawText to draw the string centered in the row. Returning *pResult = CDRF_SKIPDEFAULT to prevent any other drawing in these rows.
Eric Jacobsen
Posts
-
How to span columns in CListCtrl -
How to span columns in CListCtrlThis is what I'm looking into now. I'm stumbling a little on the issue of how to derive from CListView because CListView HAS A CListCtrl, but supposedly can act as if it IS A CListCtrl. Thanks for the response...
-
How to span columns in CListCtrlYes, the Excel functionality is just what I'm thinking of, but I think embedding an Excel sheet would probably be overkill
-
What's the difference?Scott Meyers, in "Effective C++" says to "Prefer initialization to assignment in constructors" (Item 12) "From a purely pragmatic point of view, there are times when the initialization list must be used. In particular, const and reference members may only be initialized, never assigned." There is also a question of efficiency: "When a member initialization list is used, only a single string member function is called. When assignment inside the constructor is used, two are called. . . Even in the case of the lowly string type, the cost of an unnecessary function call may be significant, and as classes become larger and more complex, so do their constructors, and so does the cost of constructing objects. If you establish the habit of using a member initialization list whenever you can, not only do you satisfy a requirement for const and reference members, you also minimize the chances of initializing data members in an inefficient manner." check out the book for the whole article--good stuff! ---------------------------------------- Please reply in the forum--my email is filtered
-
How to span columns in CListCtrlMy application scrolls data in real-time over several columns using a CListCtrl (MSVC++ 6.0). I'd like to occasionally put a user-message that takes up the entire row, spanning all the columns in the table. The MFC Grid Control doesn't seem to have this feature (hint hint). Does anyone know if this has been done? Thanks! Eric ---------------------------------------- Please reply in the forum--email is filtered
-
VBA to get data by clicking on Excel chartfound something that might have answered my question, though I'd still like to hear your ideas... http://www.geocities.com/jonpeltier/Excel/Charts/index.html#PointInfo
-
VBA to get data by clicking on Excel chartI have massive spreadsheets of data to wade through and am hoping to automate the process. I would like to make a chart of the data (x-axis is time stamp) and then have a script/macro so that I can go through plot and pick off data points by clicking on the plot. The script would read off the time-stamp and value of the closest point to my mouse click and paste it into another Sheet. I currently have to hold the mouse over the data point until the value pops up in a Tool-tip and then manually enter the value, or copy it from the original massive list. Thanks for any ideas or suggestions! Eric
-
Adding to chart data rangeI don't think this even uses a macro, but check out this example: http://www.ozgrid.com/download/default.htm Go to this site and download the ChartByMonth.zip example.
-
Simple !?! How to wait for OKuse Progress.DoModal() but put your function code into the dialog class's InitInstance() so that the function runs when the dialog opens up. Then you can send function-related info to the dialog using member variables of the dialog and UpdateData() Hope this helps...