My application has 2 parts, one is a MFC based window, while the other is a C++ based code.

I need to have a timer attached to both these parts, that would trigger a behaviour at repeated intervals.

I used to be able to do this easily with `QTimer`, when I had worked with Qt.

With MFC/C++ I'm not sure what to use. Would a single `setTimer()` suffice, and how would the message handler look like in the C++ part of the code?

Kindly suggest how to attach one timer which would work with both these sections.

Thanks.