mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
[FIX] Fix some typos.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@626 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
194882dd0b
commit
468f93b3c1
@ -70,9 +70,9 @@ Notepad_plus::Notepad_plus(): Window(), _mainWindowStatus(0), _pDocTab(NULL), _p
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ATTENTION : the order of the destruction is very important
|
// ATTENTION : the order of the destruction is very important
|
||||||
// because if the parent's window hadle is destroyed before
|
// because if the parent's window handle is destroyed before
|
||||||
// the destruction of its childrens' windows handle,
|
// the destruction of its children windows' handles,
|
||||||
// its childrens' windows handle will be destroyed automatically!
|
// its children windows' handles will be destroyed automatically!
|
||||||
Notepad_plus::~Notepad_plus()
|
Notepad_plus::~Notepad_plus()
|
||||||
{
|
{
|
||||||
(NppParameters::getInstance())->destroyInstance();
|
(NppParameters::getInstance())->destroyInstance();
|
||||||
@ -96,7 +96,7 @@ void Notepad_plus::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLine, CmdL
|
|||||||
nppClass.cbClsExtra = 0;
|
nppClass.cbClsExtra = 0;
|
||||||
nppClass.cbWndExtra = 0;
|
nppClass.cbWndExtra = 0;
|
||||||
nppClass.hInstance = _hInst;
|
nppClass.hInstance = _hInst;
|
||||||
nppClass.hIcon = ::LoadIcon(_hInst, MAKEINTRESOURCE(IDI_M30ICON));
|
nppClass.hIcon = ::LoadIcon(hInst, MAKEINTRESOURCE(IDI_M30ICON));
|
||||||
nppClass.hCursor = ::LoadCursor(NULL, IDC_ARROW);
|
nppClass.hCursor = ::LoadCursor(NULL, IDC_ARROW);
|
||||||
nppClass.hbrBackground = ::CreateSolidBrush(::GetSysColor(COLOR_MENU));
|
nppClass.hbrBackground = ::CreateSolidBrush(::GetSysColor(COLOR_MENU));
|
||||||
nppClass.lpszMenuName = MAKEINTRESOURCE(IDR_M30_MENU);
|
nppClass.lpszMenuName = MAKEINTRESOURCE(IDR_M30_MENU);
|
||||||
@ -124,13 +124,13 @@ void Notepad_plus::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLine, CmdL
|
|||||||
_className,\
|
_className,\
|
||||||
TEXT("Notepad++"),\
|
TEXT("Notepad++"),\
|
||||||
WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,\
|
WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,\
|
||||||
// CreateWindowEx bug : set all 0 to walk arround the pb
|
// CreateWindowEx bug : set all 0 to walk around the pb
|
||||||
0, 0, 0, 0,\
|
0, 0, 0, 0,\
|
||||||
_hParent,\
|
_hParent,\
|
||||||
NULL,\
|
NULL,\
|
||||||
_hInst,\
|
_hInst,\
|
||||||
(LPVOID)this); // pass the ptr of this instantiated object
|
(LPVOID)this); // pass the ptr of this instantiated object
|
||||||
// for retrive it in Notepad_plus_Proc from
|
// for retrieve it in Notepad_plus_Proc from
|
||||||
// the CREATESTRUCT.lpCreateParams afterward.
|
// the CREATESTRUCT.lpCreateParams afterward.
|
||||||
|
|
||||||
if (!_hSelf)
|
if (!_hSelf)
|
||||||
@ -2250,7 +2250,7 @@ void Notepad_plus::removeBufferFromView(BufferID id, int whichOne) {
|
|||||||
|
|
||||||
//check if buffer exists
|
//check if buffer exists
|
||||||
int index = tabToClose->getIndexByBuffer(id);
|
int index = tabToClose->getIndexByBuffer(id);
|
||||||
if (index == -1) //doesnt exist, done
|
if (index == -1) //doesn't exist, done
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Buffer * buf = MainFileManager->getBufferByID(id);
|
Buffer * buf = MainFileManager->getBufferByID(id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user