Original Post
Im trying to create a window manager class to handle the creation of a windows window.
currently I have Main.cpp which is the class that executes when we run the program. then all the managers etc are created and called from the Main class.
I moved the window intialization code from the main class and put it in a WindowManager class but I cant see anything else that I can move to the WindowManager.
I need to keep the WINAPI WinMain function in the Main class because this is where the app runs from.
I tried moving the WindowProc function over to the WindowManager but I get an error that LRESULT cannot be assigned to WNDPROC. Im not sure why this doesnt happen in the main class but does when I move it to another class.
Can anyone explain what you do when you create a window manager?
thanks,
currently I have Main.cpp which is the class that executes when we run the program. then all the managers etc are created and called from the Main class.
I moved the window intialization code from the main class and put it in a WindowManager class but I cant see anything else that I can move to the WindowManager.
I need to keep the WINAPI WinMain function in the Main class because this is where the app runs from.
I tried moving the WindowProc function over to the WindowManager but I get an error that LRESULT cannot be assigned to WNDPROC. Im not sure why this doesnt happen in the main class but does when I move it to another class.
Can anyone explain what you do when you create a window manager?
thanks,