I am going through the "Getting started with the Windows API" portion of MSDN, and ran into an aspect of C++ I'm having trouble understanding.
I've been looking in "The C++ Programming Language" by Stroustrup, and can't find this particular thing.
Please check the link to the relevant page on MSDN.
The line that I don't understand is:
BaseWindow() : m_hwnd(NULL) { }
This line is in the latter code snippet describing an object oriented approach to the subject. m_hwnd
is of the type HWND
.
I really have no idea what is happening here. I'm pretty sure it's a constructor that doesn't do much of anything, but this specific syntax is foreign to me. I must admit my C++ knowledge is mostly just "C with some C++ stuff added". I'm currently diving deep into Stroustrup to remedy that.