Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NppParameters::NppParameters() : _pXmlDoc(NULL),_pXmlUserDoc(NULL), _pXmlUserStylerDoc(NULL),\
- _pXmlUserLangDoc(NULL), _pXmlNativeLangDocA(NULL),\
- _nbLang(0), _pXmlToolIconsDoc(NULL),\
- _nbRecentFile(0), _nbMaxRecentFile(10), _recentFileCustomLength(RECENTFILES_SHOWFULLPATH),_putRecentFileInSubMenu(false),
- _pXmlShortcutDoc(NULL), _pXmlContextMenuDocA(NULL), _pXmlSessionDoc(NULL), _pXmlBlacklistDoc(NULL),\
- _nbUserLang(0), _nbExternalLang(0), _hUser32(NULL), _hUXTheme(NULL),\
- _transparentFuncAddr(NULL), _enableThemeDialogTextureFuncAddr(NULL), _pNativeLangSpeaker(NULL),\
- _isTaskListRBUTTONUP_Active(false), _fileSaveDlgFilterIndex(-1), _asNotepadStyle(false), _isFindReplacing(false)
- {
- // init import UDL array
- _nbImportedULD = 0;
- for (int i = 0 ; i < NB_MAX_IMPORTED_UDL ; i++)
- {
- _importedULD[i] = NULL;
- }
- //Get windows version
- _winVersion = getWindowsVersion();
- // Prepare for default path
- TCHAR nppPath[MAX_PATH];
- ::GetModuleFileName(NULL, nppPath, MAX_PATH);
- PathRemoveFileSpec(nppPath);
- _nppPath = nppPath;
- //Initialize current directory to startup directory
- TCHAR curDir[MAX_PATH];
- ::GetCurrentDirectory(MAX_PATH, curDir);
- _currentDirectory = curDir;
- _appdataNppDir = TEXT("");
- generic_string notepadStylePath(_nppPath);
- PathAppend(notepadStylePath, notepadStyleFile);
- _asNotepadStyle = (PathFileExists(notepadStylePath.c_str()) == TRUE);
- //Load initial accelerator key definitions
- initMenuKeys();
- initScintillaKeys();
- }
Advertisement
Add Comment
Please, Sign In to add comment