http://www.relisoft.com/win32/winnie.html
I was searchin for some more win32 tutorials so i can get a broad band of learning of you will,
well i ran into that link. And by the source on that page,
(Just a snipplet)Code:#include <windows.h> LRESULT CALLBACK WindowProcedure (HWND hwnd, unsigned int message, WPARAM wParam, LPARAM lParam); class WinClass { public: WinClass (WNDPROC winProc, char const * className, HINSTANCE hInst); void Register () { ::RegisterClass (&_class); } private: WNDCLASS _class; }; WinClass::WinClass (WNDPROC winProc, char const * className, HINSTANCE hInst) { _class.style = 0; _class.lpfnWndProc = winProc; // window procedure: mandatory _class.cbClsExtra = 0; _class.cbWndExtra = 0; _class.hInstance = hInst; // owner of the class: mandatory _class.hIcon = 0; _class.hCursor = ::LoadCursor (0, IDC_ARROW); // optional _class.hbrBackground = (HBRUSH) (COLOR_WINDOW + 1); // optional _class.lpszMenuName = 0; _class.lpszClassName = className; // mandatory }
Now correct me if i am wrong, but it looks like this is a win32 setup redesigned to be in C++?
Can someone check this page out (who knows more about win32) and tell me if it has everything it should?
If so id much rather use this method because i know very little C (its format is just foreign) and C++ format would be much nicer to deal with.
Thanks to any replies!



LinkBack URL
About LinkBacks


