IDirect3DDevice9::SetDialogBoxMode looks like what you want - look for it in your SDK help file.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.