// If we could not initialize the dialog box, return an error
if (!SHCreateMenuBar(&mbi)) {
DestroyWindow (hWnd);
return FALSE;
}
// Override back key since we have an edit control
SendMessage(mbi.hwndMB, SHCMBM_OVERRIDEKEY, VK_TBACK,
MAKELPARAM (SHMBOF_NODEFAULT | SHMBOF_NOTIFY,
SHMBOF_NODEFAULT | SHMBOF_NOTIFY));