title: What message is processed during the process of minimize or maximize of a window?
body: <p>I want to self-draw the title bar of a window with MFC. So I override the OnNcPaint() method of CMainFrame. Everything seems alright, until I click the item in the control menu to make it minimize or maximize. During the minizing or maximizing process, I can see the original title bar appeared. I don't know why this happened. Maybe there are some messages I didn't handle in the process? Need your help. Thanks a lot! </p>