Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 22016

Form Paint Event and AutoRedraw

$
0
0
Hi Guys

As we know, Form_Paint does not get triggered if AutoRedraw is True.

I have some code that needs to be invoked after Form_Activate on a form with AutoRedraw set to True. On other forms where Paint event is invoked everything works fine.

I have tried overriding WindowProc and sending a WM_USER message from Form_Activate. Which is an improvement, but in certain cases (quickly opening successive forms) my code is still being invoked to early in the forms lifecycle.

I'll clarify too early. I'm using the API GetMenu method to get a handle to the menu being displayed in the MDI parent. If this is invoked too early I get the old menu handle for the previous child form.

Thank you and best regards

jwal

Viewing all articles
Browse latest Browse all 22016

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>