[MSPAINT] Base dialog implementations on CDialogImpl