This example uses the Flags property to define options for the Open dialog box; hides the Read-Only check box and enables preview image window and the find button.
{
// Private Sub mnuSetFlags_Click
#define FINDANDPREVIEW 0x40
// Bitwise OR the flags together
ImgAdmin1.SetFlags (OFN_HIDEREADONLY | FINDANDPREVIEW);
VARIANT vhWnd; V_VT(&vhWnd) = VT_I4;
V_I4(&vhWnd) = (long)m_hWnd;
ImgAdmin1.ShowFileDialog (0,vhWnd); // OpenDlg
}