I'm looking for an example of how to change images in a CListView. The items in my list can be edited, once edited I want to change the image so the user has a visual clue that the item has been modified. When the document is saved, the orignal image will be restored. An example of this capability is Microsofts Visual Source Safe (VSS). When you check out a file, its image (file icon) gets a red check-mark and red border. When the file is checked in, the check-mark and border are removed. I've experimented with I_IMAGECALLBACK, but it seems the callback only happens once when the item is inserted in the list control. I've read a little about image overlays in MSDN, but I can't find enough information to make an attempt at using them. I'm not even sure if it's the appropriate solution. Any help is much appreciated. Marc
M
Marc Tompkins
@Marc Tompkins
Posts
-
Change Image in CListCtrl -
Appearing/Disappearing Asterisk in Title BarI am working on an MFC MDI application. I'd like to have the document title (in the app's title bar) display an asterisk at the end when the document has been changed. When the document is saved, the asterisk disappears. MS Visual Studio's text editor has this capability. Any suggestions on how to add this capability? Marc
-
Close view from OnUpdate?What is the best way to close (i.e., destroy) a view from its OnUpdate operation? I don't want to close the document. Currently, I am aware of the following options. I am not sure if they'd all work, or which would work best. 1. CDocument::RemoveView() 2. Post WM_CLOSE 3. Post WM_DESTROY Any help is much appreciated. Marc