Searching a message
Hi
I use the DialogBox function to create a Dialog and then Ive som aeras where I want draw with OpenGL.
But the first WM_PAINT message doesn't draw the stuff.
So I wonder if it exists a message that is called at initialization where I can draw and it will be recognized.
The first viable message for a dialog should be WM_INITDIALOG. Everything's created and there, just not visible yet.
But I putted a Msg box in both WM_INITDIALOG and WM_PAINT
and I saw that WM_INITDIALOG was called before WM_PAINT.
even though no graphics is displayed, Ive to do some action but I dont want to do that cause it have to be displayed immediately.
and I saw that WM_INITDIALOG was called before WM_PAINT.
even though no graphics is displayed, Ive to do some action but I dont want to do that cause it have to be displayed immediately.
Hmm, that's weird.
You could try to put a RedrawWindow and/or UpdateWindow in WM_INITDIALOG, but the first WM_PAINT should draw everything at least once when the dialog is shown.
You could try to put a RedrawWindow and/or UpdateWindow in WM_INITDIALOG, but the first WM_PAINT should draw everything at least once when the dialog is shown.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement