if (m_pszMatched && !RxReplace(pszNewText, m_pszMatched, m_nLastFindWhatLen, m_rxmatch, &lpszNewStr, &m_nLastReplaceLen))
{
CString text;
- if (lpszNewStr && m_nLastReplaceLen > 0)
+ if (lpszNewStr != nullptr && m_nLastReplaceLen > 0)
{
LPTSTR buf = text.GetBuffer (m_nLastReplaceLen + 1);
_tcsncpy_s (buf, m_nLastReplaceLen+1, lpszNewStr, m_nLastReplaceLen);
_tcscpy_s(info.lfMenuFont.lfFaceName, _T("MS Sans Serif"));
oFont.CreateFontIndirect(&info.lfMenuFont);
oldFont = dc.SelectObject(&oFont);
- if(lpszText && *lpszText) {
+ if(lpszText != nullptr && *lpszText != 0) {
size = dc.GetTextExtent(lpszText);
width = size.cx;
} else {
// Look for BFFM_INITIALIZED
if (uMsg == BFFM_INITIALIZED)
{
- if (lpData)
+ if (lpData != NULL)
SendMessage(hwnd, BFFM_SETSELECTION, TRUE, lpData);
else
SendMessage(hwnd, BFFM_SETSELECTION, TRUE, (LPARAM)LastSelectedFolder.c_str());
virtual ~CLocationBar();
virtual BOOL Create(
CWnd* pParentWnd, // mandatory
- LPCTSTR lpszWindowName = NULL,
+ LPCTSTR lpszWindowName = nullptr,
DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP,
UINT nID = AFX_IDW_PANE_FIRST);