CHECKMENUSTATE(flashSize == 0x20000));
CHECKMENUSTATE(winFlashSize == 0x20000));
void updateSaveTypeMenu(HMENU menu){  if(menu == NULL)    return;  CheckMenuItem(menu, ID_OPTIONS_EMULATOR_SAVETYPE_AUTOMATIC,                CHECKMENUSTATE(winSaveType == 0));  CheckMenuItem(menu, ID_OPTIONS_EMULATOR_SAVETYPE_EEPROM,                CHECKMENUSTATE(winSaveType == 1));  CheckMenuItem(menu, ID_OPTIONS_EMULATOR_SAVETYPE_SRAM,                CHECKMENUSTATE(winSaveType == 2));  CheckMenuItem(menu, ID_OPTIONS_EMULATOR_SAVETYPE_FLASH,                CHECKMENUSTATE(winSaveType == 3));  CheckMenuItem(menu, ID_OPTIONS_EMULATOR_SAVETYPE_EEPROMSENSOR,                CHECKMENUSTATE(winSaveType == 4));  CheckMenuItem(menu, ID_OPTIONS_EMULATOR_SAVETYPE_FLASH512K,                CHECKMENUSTATE(flashSize == 0x10000));  CheckMenuItem(menu, ID_OPTIONS_EMULATOR_SAVETYPE_FLASH1M,                CHECKMENUSTATE(flashSize == 0x20000));}