long newId = NewControlId();
HWND hwndBtn = ::CreateWindow(_T("BUTTON"),
long newId = NewControlId();
HWND hwndBtn = ::CreateWindow(_T("BUTTON"),
styleBtn,
0, 0, 0, 0, // will be set in SetSize()
GetHwndOf(parent),
styleBtn,
0, 0, 0, 0, // will be set in SetSize()
GetHwndOf(parent),
SetSize(pos.x, pos.y, size.x, size.y);
// Now that we have items determine what is the best size and set it.
SetSize(pos.x, pos.y, size.x, size.y);
// Now that we have items determine what is the best size and set it.