When I disable the close button of a form (in MC++)

::EnableMenuItem(hMenu, SC_CLOSE, MF_BYCOMMAND | MF_GRAYED);
::DrawMenuBar(hwnd);

everything works as expected. But when I show a MessageBox the close button
is not gray and appears to be pressed (tested on XP with themes enabled).
Anyway to get it gray in this situation?

Thanks