yeah i know! but this is just an example..
im actually making a gui library, so like inside the window class i can call the function CreateWindow and pass 'this' as its parent window..
it is something like this:
win1.CreateWindow(this, 10, 10);
//inside window class
template <class Widget>
void CreateWindow(const Widget & parent, const int x, const int y)
// create window using parent->Handle() as its parent window handle..
I think you need to look at your design again. For some reason what you are doing doesn't seem like a good way to go about it. I would suggest an alternative but, I'm not completely sure how your code works.
firstPerson - no i think its fine, but im gona use the other method though, cause sometimes the window might have no parent, and so passing 0 (or NULL) won't work..
so i will just pass this->Handle()
and the CreateWindow function will have the first parameter as HWND