CFormView looses title on losing focus
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have an app that uses several CFormView objects. I set a default title to each of them when adding their frame windows to the document. I also set a new title in the OnUpdate function of these views based on the value of a member attribute. When the view is invoked it displays the title/caption in the title bar but, strangely, looses the title when loosing focus. The titles becomes ":1", ":2", etc. for these views if I switch from them to other views. To get back the title, I have to force an update so the OnUpdate gets called and the title is reset. I am sure it's something very minor that's causing it but not sure what it is. Any feedback is very much appreciated.