Is there a way to make sure the window runs it's procedure and handles it's messages even if it is inactive or minimized?

Thanks in advance.