CFormView with icon style CListCtrl works fine on debug build, but not on release
-
Hello, I'm developing an MFC application - an outlook style splitter window app that displays various CFormViews in its right pane. Recently, I changed the initial view (The AFX_IDW_PANE_FIRST view) to have an icon style CListCtrl, from a report style CListCtrl. The CListCtrl is populated in OnInitialUpdate. This was not the first view in this app to have an icon CListCtrl, so I imagined it wouldn't present any trouble. It doesn't present any trouble with the debug build. However, on the release build, no icons are initially visible in the CReportCtrl's icon style CListCtrl. I have to press a toolbar button that sends a message to the view, whose handler calls the same reloading utility function called from within OnInitialUpdate to have it populated. Then, it behaves correctly. Why is my CFormView failing to be populated from within OnInitialUpdate? Control flow does reach OnInitialUpdate/the reloading utility function, so it really ought to work, but it doesn't. Any help that can be offered is of course greatly appreciated, Regards, Sternocera
-
Hello, I'm developing an MFC application - an outlook style splitter window app that displays various CFormViews in its right pane. Recently, I changed the initial view (The AFX_IDW_PANE_FIRST view) to have an icon style CListCtrl, from a report style CListCtrl. The CListCtrl is populated in OnInitialUpdate. This was not the first view in this app to have an icon CListCtrl, so I imagined it wouldn't present any trouble. It doesn't present any trouble with the debug build. However, on the release build, no icons are initially visible in the CReportCtrl's icon style CListCtrl. I have to press a toolbar button that sends a message to the view, whose handler calls the same reloading utility function called from within OnInitialUpdate to have it populated. Then, it behaves correctly. Why is my CFormView failing to be populated from within OnInitialUpdate? Control flow does reach OnInitialUpdate/the reloading utility function, so it really ought to work, but it doesn't. Any help that can be offered is of course greatly appreciated, Regards, Sternocera
I have come up with what seems like a reasonable enough work around - rather than calling that utility function directly, I PostMessage(ID_RELOAD ) and have it populated that way. Regards, Sternocera