Cannot access CChildFrame from separate thread

I've created a standard MDI (app-wizard) project -- not using document/view. I've created a GUI thread from the CChildFrame class. For some reason, I cannot access the status bar on my CChildFrame class from this thread. I also cannot create a new CMDIChildWnd from this thread. I can, however, access all the controls of the CChildView.
I tried to work around this by calling a function from the CChildView class that accesses the statusbar of the CChildFrame. It doesn't work.
Btw, the project just crashes at the time the thread tries to access the CChildFrame or tries to create a new CMDIChildWnd.

Anyone know of a solution for this?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

PriyeshConnect With a Mentor Commented:
try using messages to communicate to your mainwindow.
All Courses

From novice to tech pro — start learning today.