Something like this.
Code:
CWindow
{
CWindow() { createwindowex, etc. }
virtual void initialize() { }
};
COpenGLWindow : CWindow
{
COpenGLWindow() : CWindow() { }
virtual void initialize() { lengthy operation; }
};
CSplash : CWindow
{
CSplash() { }
virtual void initialize() { }
};
Essentially, I want to order the creation of these guys so as to make the CSplash screen appear during the initialization of a COpenGLWindow. Both windows use the same message loop but different window classes. Basically I was thinking something like:
Code:
windowprocedureofglwindow
{
static CSplash * c;
WM_CREATE:
c = new CSplash();
initialize the oglwindow
delete c;
}
But the problem is, I can't get the 'this' pointer to my glwindow to the window procedure passing it through means of lpCreateParams of anything because it is not fully formed. Is there a different way I could pass information in a manner similar to lpCreateParams to the window procedure by means of some message? Is there a special way to define my own message?