Hello,
Im trying to make a class for managing creating windows, which will then derive to create OpenGL/Direct3D windows.... anyway to create a window i need a pointer to the window message pump (i.e):
LRESULT CALLBACK cBaseWindow::Window_Message_Pump(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
..
}
}
As you can see above the message pump is part of my cBaseWindow class, and i dont seem to be able to get a valid function pointer to create a window... am i able to put the message pump within its own class? i would presume i can, im just doing it wrong... Can anyone point me in the right direction?
ive tried the basic techniques:
// Both with address operator and with/without the scope prefix
&cBaseWindow::Window_Message_Pump;
&Window_Message_Pump;
// Same as above but without address operator
cBaseWindow::Window_Message_Pump;
Window_Message_Pump;
ive also tried creating a member function pointer but it just refuses to point to it, im not sure if the CALLBACK aspect screws it up... any help would be great..
Thanks,
Grofit