/////////////////////////////////////////////////////////
//
// CRecoOutputWnd::~CRecoOutputWnd
//
// Destructor.
//
/////////////////////////////////////////////////////////
HWND CRecoOutputWnd::Create(
        HWND hwndParent,
        UINT nID
        )
{
    if (NULL == m_hWnd)
    {
        m_hRichEdit = ::LoadLibraryW(L"Riched20.dll");
        if (NULL != m_hRichEdit)
        {
            // Create a richedit control
            HWND hwndREdit = ::CreateWindowW(RICHEDIT_CLASSW,
                                             NULL,
                                             WS_VISIBLE | WS_CHILD | WS_BORDER
                                             | ES_SUNKEN | ES_MULTILINE | ES_READONLY,
                                             0, 0, 1, 1,
                                             hwndParent,
                                             (HMENU)nID,
                                             _Module.GetModuleInstance(),
                                             NULL
                                             );
            // Subclass it and attach to this CRecoOutputWnd object
            if (NULL != hwndREdit)
            {
                SubclassWindow(hwndREdit);
            }
        }
    }
    return m_hWnd;
}