Make modified code conform to the coding style

pull/10600/head
Don Ho 3 years ago
parent 531bef28d8
commit 4d57f5071f

@ -32,7 +32,7 @@ void DockingSplitter::init(HINSTANCE hInst, HWND hWnd, HWND hMessage, UINT flags
WNDCLASS wc; WNDCLASS wc;
DWORD hwndExStyle = (DWORD)GetWindowLongPtr(hWnd, GWL_EXSTYLE); DWORD hwndExStyle = (DWORD)GetWindowLongPtr(hWnd, GWL_EXSTYLE);
isRTL = hwndExStyle & WS_EX_LAYOUTRTL; _isRTL = hwndExStyle & WS_EX_LAYOUTRTL;
if (flags & DMS_HORIZONTAL) if (flags & DMS_HORIZONTAL)
{ {
@ -139,7 +139,7 @@ LRESULT DockingSplitter::runProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM
} }
else if (_ptOldPos.x != pt.x) else if (_ptOldPos.x != pt.x)
{ {
::SendMessage(_hMessage, DMM_MOVE_SPLITTER, isRTL ? pt.x - _ptOldPos.x : _ptOldPos.x - pt.x, reinterpret_cast<LPARAM>(_hSelf)); ::SendMessage(_hMessage, DMM_MOVE_SPLITTER, _isRTL ? pt.x - _ptOldPos.x : _ptOldPos.x - pt.x, reinterpret_cast<LPARAM>(_hSelf));
} }
_ptOldPos = pt; _ptOldPos = pt;
} }

@ -51,6 +51,6 @@ private:
static BOOL _isHoriReg; static BOOL _isHoriReg;
// get layout direction // get layout direction
bool isRTL; bool _isRTL = false;
}; };

Loading…
Cancel
Save