if (!(hwnd = CreateWindowEx(dwexstyle, reinterpret_cast<LPCWSTR>("My Window"), reinterpret_cast<LPCWSTR>(title), WS_CLIPSIBLINGS | WS_CLIPCHILDREN | dwstyle, 0, 0, windowrect->right - windowrect->left+menuwidth, windowrect->bottom - windowrect->top + menuheight, 0, 0, hinstance, 0)))