- if (name=="IDOK")
- name="wxID_OK";
- else if (name=="IDCANCEL")
- name="wxID_CANCEL";
- else if (name=="IDAPPLY")
- name="wxID_APPLY";
- else if (name=="ID_FILE_OPEN")
- name="wxID_OPEN";
- else if (name=="ID_FILE_CLOSE")
- name="wxID_CLOSE";
- else if (name=="ID_FILE_SAVE")
- name="wxID_SAVE";
- else if (name=="ID_FILE_SAVE_AS")
- name="wxID_SAVEAS";
- else if (name=="ID_APP_EXIT")
- name="wxID_EXIT";
- else if (name=="ID_FILE_PRINT")
- name="wxID_PRINT";
- else if (name=="ID_FILE_PRINT_PREVIEW")
- name="wxID_PREVIEW";
- else if (name=="ID_FILE_PRINT_SETUP")
- name="wxID_PRINT_SETUP";
- else if (name=="ID_APP_ABOUT")
- name="wxID_ABOUT";
- else if (name=="ID_EDIT_UNDO")
- name="wxID_UNDO";
- else if (name=="ID_EDIT_CUT")
- name="wxID_CUT";
- else if (name=="ID_EDIT_COPY")
- name="wxID_COPY";
- else if (name=="ID_EDIT_PASTE")
- name="wxID_PASTE";
-
- m_xmlfile.Write(" name= \""+name+"\"");
+ if (name==_T("IDOK"))
+ name=_T("wxID_OK");
+ else if (name==_T("IDCANCEL"))
+ name=_T("wxID_CANCEL");
+ else if (name==_T("IDAPPLY"))
+ name=_T("wxID_APPLY");
+ else if (name==_T("ID_FILE_OPEN"))
+ name=_T("wxID_OPEN");
+ else if (name==_T("ID_FILE_CLOSE"))
+ name=_T("wxID_CLOSE");
+ else if (name==_T("ID_FILE_SAVE"))
+ name=_T("wxID_SAVE");
+ else if (name==_T("ID_FILE_SAVE_AS"))
+ name=_T("wxID_SAVEAS");
+ else if (name==_T("ID_APP_EXIT"))
+ name=_T("wxID_EXIT");
+ else if (name==_T("ID_FILE_PRINT"))
+ name=_T("wxID_PRINT");
+ else if (name==_T("ID_FILE_PRINT_PREVIEW"))
+ name=_T("wxID_PREVIEW");
+ else if (name==_T("ID_FILE_PRINT_SETUP"))
+ name=_T("wxID_PRINT_SETUP");
+ else if (name==_T("ID_APP_ABOUT"))
+ name=_T("wxID_ABOUT");
+ else if (name==_T("ID_EDIT_UNDO"))
+ name=_T("wxID_UNDO");
+ else if (name==_T("ID_EDIT_CUT"))
+ name=_T("wxID_CUT");
+ else if (name==_T("ID_EDIT_COPY"))
+ name=_T("wxID_COPY");
+ else if (name==_T("ID_EDIT_PASTE"))
+ name=_T("wxID_PASTE");
+ else if (name==_T("IDYES"))
+ name=_T("wxID_YES");
+ else if (name==_T("IDNO"))
+ name=_T("wxID_NO");
+ else if (name==_T("IDHELP"))
+ name=_T("wxID_HELP");
+
+ m_xmlfile.Write(_T(" name= \"")+name+_T("\""));