⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cwnd.hpp

📁 新版本TR1的stl
💻 HPP
📖 第 1 页 / 共 2 页
字号:
{
    s << static_cast<LPCTSTR>(shim);

    return s;
}

template <ss_typename_param_k S>
inline S& operator <<(S& s, c_str_ptr_CWnd_proxy const& shim)
{
    s << static_cast<LPCTSTR>(shim);

    return s;
}

/* /////////////////////////////////////////////////////////////////////////
 * c_str_ptr_null
 *
 * This can be applied to an expression, and the return value is either a
 * pointer to the character string or NULL.
 */

/* CWnd */
/** \brief \ref group__concept__shim__string_access__c_str_ptr_null for CWnd
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null(CWnd const& w)
{
    return c_str_ptr_null_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_w(CWnd const& w)
#else /* ? UNICODE */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_a(CWnd const& w)
#endif /* UNICODE */
{
    return c_str_ptr_null(w);
}

/** \brief \ref group__concept__shim__string_access__c_str_ptr_null for CListBox
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null(CListBox const& w)
{
    return c_str_ptr_null_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_w(CListBox const& w)
#else /* ? UNICODE */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_a(CListBox const& w)
#endif /* UNICODE */
{
    return c_str_ptr_null(w);
}

#ifdef __AFXCMN_H__
/** \brief \ref group__concept__shim__string_access__c_str_ptr_null for CListCtrl
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null(CListCtrl const& w)
{
    return c_str_ptr_null_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_w(CListCtrl const& w)
#else /* ? UNICODE */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_a(CListCtrl const& w)
#endif /* UNICODE */
{
    return c_str_ptr_null(w);
}

# ifdef __AFXCVIEW_H__
/** \brief \ref group__concept__shim__string_access__c_str_ptr_null for CListView
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null(CListView const& w)
{
    return c_str_ptr_null(w.GetListCtrl());
}
#if defined(UNICODE)
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_w(CListView const& w)
#else /* ? UNICODE */
inline c_str_ptr_null_CWnd_proxy c_str_ptr_null_a(CListView const& w)
#endif /* UNICODE */
{
    return c_str_ptr_null(w);
}
# endif /* __AFXCVIEW_H__ */
#endif /* __AFXCMN_H__ */

/* /////////////////////////////////////////////////////////////////////////
 * c_str_ptr
 *
 * This can be applied to an expression, and the return value is either a
 * pointer to the character string or to an empty string.
 */

/* CWnd */
/** \brief \ref group__concept__shim__string_access__c_str_ptr for CWnd
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_ptr(CWnd const& w)
{
    return c_str_ptr_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_ptr_w(CWnd const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_ptr_a(CWnd const& w)
#endif /* UNICODE */
{
    return c_str_ptr(w);
}

/** \brief \ref group__concept__shim__string_access__c_str_ptr for CListBox
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_ptr(CListBox const& w)
{
    return c_str_ptr_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_ptr_w(CListBox const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_ptr_a(CListBox const& w)
#endif /* UNICODE */
{
    return c_str_ptr(w);
}

#ifdef __AFXCMN_H__
/** \brief \ref group__concept__shim__string_access__c_str_ptr for CListCtrl
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_ptr(CListCtrl const& w)
{
    return c_str_ptr_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_ptr_w(CListCtrl const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_ptr_a(CListCtrl const& w)
#endif /* UNICODE */
{
    return c_str_ptr(w);
}

# ifdef __AFXCVIEW_H__
/** \brief \ref group__concept__shim__string_access__c_str_ptr for CListView
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_ptr(CListView const& w)
{
    return c_str_ptr(w.GetListCtrl());
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_ptr_w(CListView const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_ptr_a(CListView const& w)
#endif /* UNICODE */
{
    return c_str_ptr(w);
}
# endif /* __AFXCVIEW_H__ */
#endif /* __AFXCMN_H__ */

/* /////////////////////////////////////////////////////////////////////////
 * c_str_data
 *
 * This can be applied to an expression, and the return value is either a
 * pointer to the character string or to an empty string.
 */

/* CWnd */
/** \brief \ref group__concept__shim__string_access__c_str_data for CWnd
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_data(CWnd const& w)
{
    return c_str_ptr_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_data_w(CWnd const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_data_a(CWnd const& w)
#endif /* UNICODE */
{
    return c_str_data(w);
}

/** \brief \ref group__concept__shim__string_access__c_str_data for CListBox
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_data(CListBox const& w)
{
    return c_str_ptr_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_data_w(CListBox const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_data_a(CListBox const& w)
#endif /* UNICODE */
{
    return c_str_data(w);
}

#ifdef __AFXCMN_H__
/** \brief \ref group__concept__shim__string_access__c_str_data for CListCtrl
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_data(CListCtrl const& w)
{
    return c_str_ptr_CWnd_proxy(w);
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_data_w(CListCtrl const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_data_a(CListCtrl const& w)
#endif /* UNICODE */
{
    return c_str_data(w);
}

# ifdef __AFXCVIEW_H__
/** \brief \ref group__concept__shim__string_access__c_str_data for CListView
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline c_str_ptr_CWnd_proxy c_str_data(CListView const& w)
{
    return c_str_data(w.GetListCtrl());
}
#if defined(UNICODE)
inline c_str_ptr_CWnd_proxy c_str_data_w(CListView const& w)
#else /* ? UNICODE */
inline c_str_ptr_CWnd_proxy c_str_data_a(CListView const& w)
#endif /* UNICODE */
{
    return c_str_data(w);
}
# endif /* __AFXCVIEW_H__ */
#endif /* __AFXCMN_H__ */

/* /////////////////////////////////////////////////////////////////////////
 * c_str_len
 *
 * This can be applied to an expression, and the return value is the number of
 * characters in the character string in the expression.
 */

/* CWnd */
/** \brief \ref group__concept__shim__string_access__c_str_len for CWnd
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline ms_size_t c_str_len(CWnd const& w)
{
    return GetWindowTextLength__(w);
}
#ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
# ifdef UNICODE
inline ms_size_t c_str_len_w(CWnd const& w)
# else /* ? UNICODE */
inline ms_size_t c_str_len_a(CWnd const& w)
# endif /* UNICODE */
{
    return c_str_len(w);
}
#endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */

/** \brief \ref group__concept__shim__string_access__c_str_len for CListBox
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline ms_size_t c_str_len(CListBox const& w)
{
    return GetWindowTextLength__(w);
}
#ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
# ifdef UNICODE
inline ms_size_t c_str_len_w(CListBox const& w)
# else /* ? UNICODE */
inline ms_size_t c_str_len_a(CListBox const& w)
# endif /* UNICODE */
{
    return c_str_len(w);
}
#endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */


#ifdef __AFXCMN_H__
/** \brief \ref group__concept__shim__string_access__c_str_len for CListCtrl
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline ms_size_t c_str_len(CListCtrl const& w)
{
    return GetWindowTextLength__(w);
}
# ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
#  ifdef UNICODE
inline ms_size_t c_str_len_w(CListCtrl const& w)
#  else /* ? UNICODE */
inline ms_size_t c_str_len_a(CListCtrl const& w)
#  endif /* UNICODE */
{
    return c_str_len(w);
}
# endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */


# ifdef __AFXCVIEW_H__
/** \brief \ref group__concept__shim__string_access__c_str_len for CListView
 *
 * \ingroup group__concept__shim__string_access
 *
 */
inline ms_size_t c_str_len(CListView const& w)
{
    return c_str_len(w.GetListCtrl());
}
#  ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
#   ifdef UNICODE
inline ms_size_t c_str_len_w(CListView const& w)
#   else /* ? UNICODE */
inline ms_size_t c_str_len_a(CListView const& w)
#   endif /* UNICODE */
{
    return c_str_len(w);
}
#  endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */

# endif /* __AFXCVIEW_H__ */
#endif /* __AFXCMN_H__ */

////////////////////////////////////////////////////////////////////////////
// Unit-testing

#ifdef STLSOFT_UNITTEST
# include "./unittest/cwnd_unittest_.h"
#endif /* STLSOFT_UNITTEST */

/* ////////////////////////////////////////////////////////////////////// */

#ifndef _MFCSTL_NO_NAMESPACE
# if defined(_STLSOFT_NO_NAMESPACE) || \
     defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
} // namespace mfcstl
# else
} // namespace stlsoft::mfcstl_project
} // namespace stlsoft
# endif /* _STLSOFT_NO_NAMESPACE */
#endif /* !_MFCSTL_NO_NAMESPACE */

/* /////////////////////////////////////////////////////////////////////////
 * Namespace
 *
 * The string access shims exist either in the stlsoft namespace, or in the
 * global namespace. This is required by the lookup rules.
 *
 */

#ifndef _MFCSTL_NO_NAMESPACE
# if !defined(_STLSOFT_NO_NAMESPACE) && \
     !defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
namespace stlsoft
{
# else /* ? _STLSOFT_NO_NAMESPACE */
/* There is no stlsoft namespace, so must define in the global namespace */
# endif /* !_STLSOFT_NO_NAMESPACE */

using ::mfcstl::c_str_data;
#if defined(UNICODE)
using ::mfcstl::c_str_data_w;
#else /* ? UNICODE */
using ::mfcstl::c_str_data_a;
#endif /* UNICODE */

using ::mfcstl::c_str_len;
#if defined(UNICODE)
using ::mfcstl::c_str_len_w;
#else /* ? UNICODE */
using ::mfcstl::c_str_len_a;
#endif /* UNICODE */

using ::mfcstl::c_str_ptr;
#if defined(UNICODE)
using ::mfcstl::c_str_ptr_w;
#else /* ? UNICODE */
using ::mfcstl::c_str_ptr_a;
#endif /* UNICODE */

using ::mfcstl::c_str_ptr_null;
#if defined(UNICODE)
using ::mfcstl::c_str_ptr_null_w;
#else /* ? UNICODE */
using ::mfcstl::c_str_ptr_null_a;
#endif /* UNICODE */


# if !defined(_STLSOFT_NO_NAMESPACE) && \
     !defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
} // namespace stlsoft
# else /* ? _STLSOFT_NO_NAMESPACE */
/* There is no stlsoft namespace, so must define in the global namespace */
# endif /* !_STLSOFT_NO_NAMESPACE */
#endif /* !_MFCSTL_NO_NAMESPACE */

/* ////////////////////////////////////////////////////////////////////// */

#endif /* !MFCSTL_INCL_MFCSTL_SHIMS_ACCESS_STRING_HPP_CWND */

/* ////////////////////////////////////////////////////////////////////// */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -