m4n71k0r

Notepad++

Feb 27th, 2012
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NppParameters::NppParameters() : _pXmlDoc(NULL),_pXmlUserDoc(NULL), _pXmlUserStylerDoc(NULL),\
  2.                                 _pXmlUserLangDoc(NULL), _pXmlNativeLangDocA(NULL),\
  3.                                 _nbLang(0), _pXmlToolIconsDoc(NULL),\
  4.                                 _nbRecentFile(0), _nbMaxRecentFile(10), _recentFileCustomLength(RECENTFILES_SHOWFULLPATH),_putRecentFileInSubMenu(false),
  5.                                 _pXmlShortcutDoc(NULL), _pXmlContextMenuDocA(NULL), _pXmlSessionDoc(NULL), _pXmlBlacklistDoc(NULL),\
  6.                                 _nbUserLang(0), _nbExternalLang(0), _hUser32(NULL), _hUXTheme(NULL),\
  7.                                 _transparentFuncAddr(NULL), _enableThemeDialogTextureFuncAddr(NULL), _pNativeLangSpeaker(NULL),\
  8.                                 _isTaskListRBUTTONUP_Active(false), _fileSaveDlgFilterIndex(-1), _asNotepadStyle(false), _isFindReplacing(false)
  9. {
  10.     // init import UDL array
  11.     _nbImportedULD = 0;
  12.     for (int i = 0 ; i < NB_MAX_IMPORTED_UDL ; i++)
  13.     {
  14.         _importedULD[i] = NULL;
  15.     }
  16.  
  17.     //Get windows version
  18.     _winVersion = getWindowsVersion();
  19.  
  20.     // Prepare for default path
  21.     TCHAR nppPath[MAX_PATH];
  22.     ::GetModuleFileName(NULL, nppPath, MAX_PATH);
  23.    
  24.     PathRemoveFileSpec(nppPath);
  25.     _nppPath = nppPath;
  26.  
  27.     //Initialize current directory to startup directory
  28.     TCHAR curDir[MAX_PATH];
  29.     ::GetCurrentDirectory(MAX_PATH, curDir);
  30.     _currentDirectory = curDir;
  31.  
  32.     _appdataNppDir = TEXT("");
  33.     generic_string notepadStylePath(_nppPath);
  34.     PathAppend(notepadStylePath, notepadStyleFile);
  35.        
  36.     _asNotepadStyle = (PathFileExists(notepadStylePath.c_str()) == TRUE);
  37.  
  38.     //Load initial accelerator key definitions
  39.     initMenuKeys();
  40.     initScintillaKeys();
  41. }
Advertisement
Add Comment
Please, Sign In to add comment