Searching a message

Started by
3 comments, last by Endurion 18 years, 11 months ago
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.
Problems every where
Advertisement
The first viable message for a dialog should be WM_INITDIALOG. Everything's created and there, just not visible yet.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

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.




Problems every where
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.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Actually it does it works with GDI.
but not OpenGL, Ive no idea why.
the context is created in the InitDialog message.
Problems every where

This topic is closed to new replies.

Advertisement