Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method

The present invention to a digital recording device, a control method and a control method which stores a program for executing a recording medium which can identify quickly automatically whether the macro mode, a suitable mode, the present invention is to a location variable for autofocusing and the lens and the image pickup device for obtaining data about the image from the light passing through the lens, acquiring auto focus value to obtain the auto-focus value from the data that the imaging element obtaining unit that, a lens for auto focusing position determining comprises parts of the auto-focus value obtaining part obtaining auto-focus value from the plurality of lens position points within the lens location area corresponding to the macro mode, and the lens position determining unit, the autofocus value acquisition portion acquired auto focus value the point lens position corresponding to the maximum value of as corresponding to different auto-focus value Digital imaging apparatus characterized in that it determines whether or not according to a positional relationship between the lens position at the point, the lens position for auto focusing in the lens position at the area corresponding to the macro mode is to be determined, to a control method and a control method a program for executing and provides a recording medium storing.