Defines whether the next part of the value is selected once a part is complete.
C
BOOL WINAPI SftDate_GetAutoAdvance(HWND hwndCtl); void WINAPI SftDate_SetAutoAdvance(HWND hwndCtl, BOOL fAutoAdvance);
C++
BOOL CSftDate::GetAutoAdvance() const; void CSftDate::SetAutoAdvance(BOOL fAutoAdvance);
hwndCtl
The window handle of the date field control (SftDate).
fAutoAdvance
TRUE to move to the next part once a part is complete, otherwise FALSE.
GetAutoAdvance returns TRUE if automatic advance is on, otherwise FALSE.
The GetAutoAdvance and SetAutoAdvance functions define and retrieve whether a date field control moves to the next part (day, month, year, ...) once the user has typed a part completely, for example two digits of a month. The default is TRUE.
Without automatic advance, the user moves between parts using the arrow keys, Tab or the separator characters (see Editing). The setting applies to segment editing (SetEditStyle). This function applies to the date field control only. For a month calendar control, GetAutoAdvance returns FALSE and SetAutoAdvance has no effect.
break;
}
case IDC_DROPONFOCUS:
for (i = 0; i < FIELDS; ++i)
SftDate_SetDropOnFocus(c[i], fChecked);
break;
case IDC_AUTOADVANCE:
for (i = 0; i < FIELDS; ++i)
SftDate_SetAutoAdvance(c[i], fChecked);
break;
case IDC_COLORS:
for (i = 0; i < CONTROLS; ++i)
SetColorScheme(c[i], fChecked);
break;
case IDC_THEMES:
for (i = 0; i < CONTROLS; ++i)
break;
}
case IDC_DROPONFOCUS:
for (int i = 0; i < FIELDS; ++i)
m_Fields[i].SetDropOnFocus(fChecked);
break;
case IDC_AUTOADVANCE:
for (int i = 0; i < FIELDS; ++i)
m_Fields[i].SetAutoAdvance(fChecked);
break;
case IDC_COLORS:
for (int i = 0; i < CONTROLS; ++i)
SetColorScheme(Control(i), fChecked);
break;
case IDC_THEMES:
for (int i = 0; i < CONTROLS; ++i)See Also C/C++ API | Categories | Notifications