Hi gurus,
I'm new to writing a MDI program and was wondering how to determine if any documents are currently open from CMainFrame.
I need this because I am trying to disable a tool bar when the mainframe window is empty.

Also, which windows message do I need to use to know when the active document has changed?