<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[In eine RichEditBox ohne MFC ein Icon ?]]></title><description><![CDATA[<p>Da mein alter Thread nach meinem letzten post anscheinend defekt ist, nochmal hier:</p>
<p>Nu hab ich schon das nächste mir unerklärliche Problem...<br />
Und zwar habe ich zum verdeutlichen einfach mal das Funktionierende Beispiel<br />
von Trolli genommen und abgeändert.</p>
<p>Ich habe nichts weiter gemacht als folgendes Global Declariert:</p>
<pre><code class="language-cpp">IRichEditOle* pRichEditOle;
HBITMAP hBitmap;

HANDLE	hThread;
DWORD	hThreadID; 
HWND	hRichEdit;
</code></pre>
<p>Somit müste ich ja alle Funktionen in jeder Funktion benutzen können.</p>
<p>Dann habe ich das Adden des Smilies in einen Tread verpackt und Sekündlich<br />
einen Smilie adden lassen...</p>
<p>Doch da hört es auf... Sobald er den Smilie adden will, kommt der selbe fehler wie bei mir in meinem Programm ( Der Speicher Fehler )</p>
<p>Kann mir das jemand erklären ?</p>
<p>Vielen Dank soweit !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/77781/in-eine-richeditbox-ohne-mfc-ein-icon</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 21:57:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/77781.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Jun 2004 09:35:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 09:35:40 GMT]]></title><description><![CDATA[<p>Da mein alter Thread nach meinem letzten post anscheinend defekt ist, nochmal hier:</p>
<p>Nu hab ich schon das nächste mir unerklärliche Problem...<br />
Und zwar habe ich zum verdeutlichen einfach mal das Funktionierende Beispiel<br />
von Trolli genommen und abgeändert.</p>
<p>Ich habe nichts weiter gemacht als folgendes Global Declariert:</p>
<pre><code class="language-cpp">IRichEditOle* pRichEditOle;
HBITMAP hBitmap;

HANDLE	hThread;
DWORD	hThreadID; 
HWND	hRichEdit;
</code></pre>
<p>Somit müste ich ja alle Funktionen in jeder Funktion benutzen können.</p>
<p>Dann habe ich das Adden des Smilies in einen Tread verpackt und Sekündlich<br />
einen Smilie adden lassen...</p>
<p>Doch da hört es auf... Sobald er den Smilie adden will, kommt der selbe fehler wie bei mir in meinem Programm ( Der Speicher Fehler )</p>
<p>Kann mir das jemand erklären ?</p>
<p>Vielen Dank soweit !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547000</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Thu, 24 Jun 2004 09:35:40 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 09:39:01 GMT]]></title><description><![CDATA[<p>So sieht der gesamte Code aus (in 2 Posts da sonst der Thread nimmer funktioniert aus mir unergründlichen Problemen):</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt; 
#include &lt;Richedit.h&gt; 
#include &lt;richole.h&gt; 

IRichEditOle* pRichEditOle;
HBITMAP hBitmap;

HANDLE	hThread;
DWORD	hThreadID; 
HWND	hRichEdit;

class CImageDataObject : IDataObject 
{ 
public: 
    // This static function accepts a pointer to IRochEditOle 
    //   and the bitmap handle. 
    // After that the function insert the image in the current 
    //   position of the RichEdit 
    // 
    static void InsertBitmap(IRichEditOle* pRichEditOle, HBITMAP hBitmap) 
    { 
        SCODE sc; 

        // Get the image data object 
        // 
        CImageDataObject *pods = new CImageDataObject; 
        LPDATAOBJECT lpDataObject; 
        pods-&gt;QueryInterface(IID_IDataObject, (void **)&amp;lpDataObject); 

        pods-&gt;SetBitmap(hBitmap); 

        // Get the RichEdit container site 
        // 
        IOleClientSite *pOleClientSite;    
        pRichEditOle-&gt;GetClientSite(&amp;pOleClientSite); 

        // Initialize a Storage Object 
        // 
        IStorage *pStorage;    

        LPLOCKBYTES lpLockBytes = NULL; 
        sc = ::CreateILockBytesOnHGlobal(NULL, TRUE, &amp;lpLockBytes); 

        sc = ::StgCreateDocfileOnILockBytes(lpLockBytes, 
            STGM_SHARE_EXCLUSIVE|STGM_CREATE|STGM_READWRITE, 0, &amp;pStorage); 
        if (sc != S_OK) 
        { 
            lpLockBytes = NULL; 
        } 

        // The final ole object which will be inserted in the richedit control 
        // 
        IOleObject *pOleObject; 
        pOleObject = pods-&gt;GetOleObject(pOleClientSite, pStorage); 

        // all items are &quot;contained&quot; -- this makes our reference to this object 
        //  weak -- which is needed for links to embedding silent update. 
        OleSetContainedObject(pOleObject, TRUE); 

        // Now Add the object to the RichEdit 
        // 
        REOBJECT reobject; 
        ZeroMemory(&amp;reobject, sizeof(REOBJECT)); 
        reobject.cbStruct = sizeof(REOBJECT); 

        CLSID clsid; 
        sc = pOleObject-&gt;GetUserClassID(&amp;clsid); 

        reobject.clsid = clsid; 
        reobject.cp = REO_CP_SELECTION; 
        reobject.dvaspect = DVASPECT_CONTENT; 
        reobject.poleobj = pOleObject; 
        reobject.polesite = pOleClientSite; 
        reobject.pstg = pStorage; 

        // Insert the bitmap at the current location in the richedit control 
        // 
        pRichEditOle-&gt;InsertObject(&amp;reobject); 

        // Release all unnecessary interfaces 
        // 
        pOleObject-&gt;Release(); 
        pOleClientSite-&gt;Release(); 
        pStorage-&gt;Release(); 
        lpDataObject-&gt;Release(); 
    } 
private: 
    ULONG m_ulRefCnt; 
    BOOL  m_bRelease; 

    // The data being bassed to the richedit 
    // 
    STGMEDIUM m_stgmed; 
    FORMATETC m_fromat; 

public: 
    CImageDataObject() : m_ulRefCnt(0) { 
        m_bRelease = FALSE; 
    } 

    ~CImageDataObject() { 
        if (m_bRelease) 
            ::ReleaseStgMedium(&amp;m_stgmed); 
    } 

    // Methods of the IUnknown interface 
    // 
    STDMETHOD(QueryInterface)(REFIID iid, void ** ppvObject) 
    { 
        if (iid == IID_IUnknown || iid == IID_IDataObject) 
        { 
            *ppvObject = this; 
            AddRef(); 
            return S_OK; 
        } 
        else 
            return E_NOINTERFACE; 
    }
</code></pre>
<p>Zum testen ob der Tread funktioniert, einfach mal das InsertBitmap<br />
auskommentieren und die MessageBox wieder beifügen !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547003</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Thu, 24 Jun 2004 09:39:01 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 09:39:58 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">STDMETHOD_(ULONG, AddRef)(void) 
    { 
        m_ulRefCnt++; 
        return m_ulRefCnt; 
    } 
    STDMETHOD_(ULONG, Release)(void) 
    { 
        if (--m_ulRefCnt == 0) 
        { 
            delete this; 
        } 

        return m_ulRefCnt; 
    } 

    // Methods of the IDataObject Interface 
    // 
    STDMETHOD(GetData)(FORMATETC *pformatetcIn, STGMEDIUM *pmedium) 
    { 
        HANDLE hDst; 
        hDst = ::OleDuplicateData(m_stgmed.hBitmap, 
            CF_BITMAP, NULL); 
        if (hDst == NULL) 
        { 
            return E_HANDLE; 
        } 
       pmedium-&gt;tymed = TYMED_GDI; 
        pmedium-&gt;hBitmap = (HBITMAP)hDst; 
        pmedium-&gt;pUnkForRelease = NULL; 

        return S_OK; 
    } 
    STDMETHOD(GetDataHere)(FORMATETC* pformatetc, STGMEDIUM*  pmedium) 
    { 
        return E_NOTIMPL; 
    } 
    STDMETHOD(QueryGetData)(FORMATETC*  pformatetc ) 
    { 
        return E_NOTIMPL; 
    } 
    STDMETHOD(GetCanonicalFormatEtc)(FORMATETC*  pformatectIn, FORMATETC* pformatetcOut) 
    { 
        return E_NOTIMPL; 
    } 
    STDMETHOD(SetData)(FORMATETC* pformatetc , STGMEDIUM*  pmedium , BOOL  fRelease) 
    { 
        m_fromat = *pformatetc; 
        m_stgmed = *pmedium; 

        return S_OK; 
    } 
    STDMETHOD(EnumFormatEtc)(DWORD  dwDirection , IEnumFORMATETC**  ppenumFormatEtc) 
    { 
        return E_NOTIMPL; 
    } 
    STDMETHOD(DAdvise)(FORMATETC *pformatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection) 
    { 
        return E_NOTIMPL; 
    } 
    STDMETHOD(DUnadvise)(DWORD dwConnection) 
    { 
        return E_NOTIMPL; 
    } 
    STDMETHOD(EnumDAdvise)(IEnumSTATDATA **ppenumAdvise) 
    { 
        return E_NOTIMPL; 
    } 

    // Some Other helper functions 
    // 
    void SetBitmap(HBITMAP hBitmap) 
    { 
        STGMEDIUM stgm; 
        stgm.tymed = TYMED_GDI;                    // Storage medium = HBITMAP handle        
        stgm.hBitmap = hBitmap; 
        stgm.pUnkForRelease = NULL;                // Use ReleaseStgMedium 

        FORMATETC fm; 
        fm.cfFormat = CF_BITMAP;                // Clipboard format = CF_BITMAP 
        fm.ptd = NULL;                            // Target Device = Screen 
        fm.dwAspect = DVASPECT_CONTENT;            // Level of detail = Full content 
        fm.lindex = -1;                            // Index = Not applicaple 
        fm.tymed = TYMED_GDI;                    // Storage medium = HBITMAP handle 

        this-&gt;SetData(&amp;fm, &amp;stgm, TRUE);    
    } 

    IOleObject *GetOleObject(IOleClientSite *pOleClientSite, IStorage *pStorage) 
    { 
        SCODE sc; 
        IOleObject *pOleObject; 
        sc = ::OleCreateStaticFromData(this, IID_IOleObject, OLERENDER_FORMAT, 
            &amp;m_fromat, pOleClientSite, pStorage, (void **)&amp;pOleObject); 
        return pOleObject; 
    } 
}; 

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); 
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, 
                    PSTR szCmdLine, int iCmdShow) 
{ 

    static TCHAR szAppName[] = TEXT (&quot;Klassenname&quot;); 
    HWND         hwnd; 
    MSG          msg; 
    WNDCLASSEX   wndclassex = {0}; 

    wndclassex.cbSize        = sizeof(WNDCLASSEX); 
    wndclassex.style         = CS_HREDRAW | CS_VREDRAW; 
    wndclassex.lpfnWndProc   = WndProc; 
    wndclassex.cbClsExtra    = 0; 
    wndclassex.cbWndExtra    = 0; 
    wndclassex.hInstance     = hInstance; 
    wndclassex.hIcon         = LoadIcon (NULL, IDI_APPLICATION); 
    wndclassex.hCursor       = LoadCursor (NULL, IDC_ARROW); 
    wndclassex.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH); 
    wndclassex.lpszMenuName  = NULL; 
    wndclassex.lpszClassName = szAppName; 
    wndclassex.hIconSm       = wndclassex.hIcon; 

    if (!RegisterClassEx (&amp;wndclassex)) 
    { 
        MessageBox (NULL, TEXT (&quot;RegisterClassEx fehlgeschlagen!&quot;), 
            szAppName, MB_ICONERROR); 
        return 0; 
    } 

    hwnd = CreateWindowEx (WS_EX_OVERLAPPEDWINDOW, // erweiterter Fensterstil 
        szAppName, // Name der Fensterklasse 
        TEXT (&quot;Fenstertitel&quot;), // Fenstertitel 
        WS_OVERLAPPEDWINDOW, // Fensterstil 
        CW_USEDEFAULT, // X-Position des Fensters                       
        CW_USEDEFAULT, // Y-Position des Fensters       
        CW_USEDEFAULT, // Fensterbreite                 
        CW_USEDEFAULT, // Fensterhöhe                 
        NULL, // übergeordnetes Fenster 
        NULL, // Menü           
        hInstance, // Programm-Kopiezähler (Programm-ID)             
        NULL); // zusätzliche Parameter 

    ShowWindow (hwnd, iCmdShow); 
    UpdateWindow (hwnd); 

    while (GetMessage (&amp;msg, NULL, 0, 0)) 
    { 
        TranslateMessage (&amp;msg); 
        DispatchMessage (&amp;msg); 
    } 
    return msg.wParam; 
} 

DWORD WINAPI Smilie(LPVOID lpParam)
{
	while( 1 )
	{
		pRichEditOle = NULL; 
        ::SendMessage(hRichEdit, EM_GETOLEINTERFACE, 0, (LPARAM)&amp;pRichEditOle); 
        hBitmap = (HBITMAP) LoadImage(NULL, TEXT(&quot;D:\\C++ Projeckte\\RatMod Chat\\Client\\bitmap1.bmp&quot;), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); 
		// MessageBox( NULL, &quot;TREAD&quot;, &quot;&quot;, MB_OK );
		CImageDataObject::InsertBitmap(pRichEditOle, hBitmap); 
		Sleep( 1000 );
	}

	return(0);
}

// Die Hauptnachrichtenschleife 
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) 
{ 
    switch (message) 
    { 
    case WM_CREATE: 
        { 
            LoadLibrary(&quot;riched20.dll&quot;); 
            hRichEdit = CreateWindowEx(0, RICHEDIT_CLASS, NULL, WS_CHILD | WS_VISIBLE | WS_BORDER, 0, 0, 200, 200, hwnd, (HMENU) 0, GetModuleHandle(NULL), NULL); 
			hThread = CreateThread(NULL, 0, Smilie, 0, 0, &amp;hThreadID);
        } 
        return (0); 

    case WM_DESTROY: 
        PostQuitMessage (0); 
        return (0); 
    } 

    return DefWindowProc (hwnd, message, wParam, lParam); 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/547004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547004</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Thu, 24 Jun 2004 09:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 10:28:45 GMT]]></title><description><![CDATA[<p>Wenn du im Thread am Anfang CoInitialize aufrufst dann wird ein leeres weißes Bitmap in der richtigen Größe eingefügt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<p>Ich hatte auch die ganze Fehlerbehandlung rausgenommen, vielleicht solltest du die wieder einfügen. (ASSERT / AfxThrowOleException)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547017</guid><dc:creator><![CDATA[Trolli.]]></dc:creator><pubDate>Thu, 24 Jun 2004 10:28:45 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 10:37:32 GMT]]></title><description><![CDATA[<p>Ach ja, und FormatMesage sollte dir auch helfen. Damit bekommst du die Fehlermeldung als String aus nem HRESULT/SCODE.<br />
So habe ich auch rausgefunden, das CoInitialize benötigt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547025</guid><dc:creator><![CDATA[Trolli.]]></dc:creator><pubDate>Thu, 24 Jun 2004 10:37:32 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 10:44:03 GMT]]></title><description><![CDATA[<p>Bei dem ES_READONLY Problem hilft CoInitialize auch. *lol*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547036</guid><dc:creator><![CDATA[Trolli.]]></dc:creator><pubDate>Thu, 24 Jun 2004 10:44:03 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 10:48:45 GMT]]></title><description><![CDATA[<p>ASSERT / AfxThrowOleException kann ich nicht benutzen, da es kein MFC ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/547041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547041</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Thu, 24 Jun 2004 10:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 10:53:26 GMT]]></title><description><![CDATA[<p>Jo, dann benutzt du eben überall das assert aus der Standard-Library (assert.h) oder du schreibst dir kurz eine eigene assert-Funktion die dir dann auch den Fehlerstring von FormatMessage ausgibt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547050</guid><dc:creator><![CDATA[Trolli.]]></dc:creator><pubDate>Thu, 24 Jun 2004 10:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Thu, 24 Jun 2004 11:22:15 GMT]]></title><description><![CDATA[<p>Also die InsertBitmap sieht nun so aus:</p>
<pre><code class="language-cpp">static void InsertBitmap(IRichEditOle* pRichEditOle, HBITMAP hBitmap) 
    { 
        SCODE sc; 

        // Get the image data object 
        // 
        CImageDataObject *pods = new CImageDataObject; 
        LPDATAOBJECT lpDataObject; 
        pods-&gt;QueryInterface(IID_IDataObject, (void **)&amp;lpDataObject); 

        pods-&gt;SetBitmap(hBitmap); 

        // Get the RichEdit container site 
        // 
        IOleClientSite *pOleClientSite;    
        pRichEditOle-&gt;GetClientSite(&amp;pOleClientSite); 

        // Initialize a Storage Object 
        // 
        IStorage *pStorage;    

        LPLOCKBYTES lpLockBytes = NULL; 
        sc = ::CreateILockBytesOnHGlobal(NULL, TRUE, &amp;lpLockBytes); 

		assert(lpLockBytes != NULL);

        sc = ::StgCreateDocfileOnILockBytes(lpLockBytes, 
            STGM_SHARE_EXCLUSIVE|STGM_CREATE|STGM_READWRITE, 0, &amp;pStorage); 
        if (sc != S_OK) 
        { 
            lpLockBytes = NULL; 
        } 
		assert(pStorage != NULL);

        // The final ole object which will be inserted in the richedit control 
        // 
        IOleObject *pOleObject; 
        pOleObject = pods-&gt;GetOleObject(pOleClientSite, pStorage); 

        // all items are &quot;contained&quot; -- this makes our reference to this object 
        //  weak -- which is needed for links to embedding silent update. 
        OleSetContainedObject(pOleObject, TRUE); 

        // Now Add the object to the RichEdit 
        // 
        REOBJECT reobject; 
        ZeroMemory(&amp;reobject, sizeof(REOBJECT)); 
        reobject.cbStruct = sizeof(REOBJECT); 

        CLSID clsid; 
        sc = pOleObject-&gt;GetUserClassID(&amp;clsid); 

        reobject.clsid = clsid; 
        reobject.cp = REO_CP_SELECTION; 
        reobject.dvaspect = DVASPECT_CONTENT; 
        reobject.poleobj = pOleObject; 
        reobject.polesite = pOleClientSite; 
        reobject.pstg = pStorage; 

        // Insert the bitmap at the current location in the richedit control 
        // 
        pRichEditOle-&gt;InsertObject(&amp;reobject); 

        // Release all unnecessary interfaces 
        // 
        pOleObject-&gt;Release(); 
        pOleClientSite-&gt;Release(); 
        pStorage-&gt;Release(); 
        lpDataObject-&gt;Release(); 
    }
</code></pre>
<p>Aber der Fehler erscheint immer noch ganz genau so <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/547077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547077</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Thu, 24 Jun 2004 11:22:15 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Fri, 25 Jun 2004 09:20:08 GMT]]></title><description><![CDATA[<p>Keiner eine Idee was ich machen kann, damit es funktioniert ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547671</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Fri, 25 Jun 2004 09:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Fri, 25 Jun 2004 12:16:32 GMT]]></title><description><![CDATA[<p>Wenn ich das richtig sehe liegt es daran, dass m_fromat beim Aufruf von OleCreateStaticFromData NULL ist, dies aber nicht sein darf.</p>
<blockquote>
<p>The client will pull one format from the object using IDataObject::GetData(). The format of the data to be cached is passed in pFormatEtc, which may not in this case be NULL.</p>
</blockquote>
<p>Allerdings habe ich leider auch keine Ahnung, wie man das genau anstellen muss, damit es klappt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> - gibt es hier niemanden, der da Erfahrung hat? -King-?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/547843</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/547843</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 25 Jun 2004 12:16:32 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Fri, 25 Jun 2004 20:38:32 GMT]]></title><description><![CDATA[<p>Also es geht bis:</p>
<p>sc = pOleObject-&gt;GetUserClassID(&amp;clsid);</p>
<p>Dort wird das pOleObject erst auf 0x000000<br />
gesetzt (hoffe irre mich jetz nicht)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/548184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548184</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Fri, 25 Jun 2004 20:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Fri, 25 Jun 2004 21:06:21 GMT]]></title><description><![CDATA[<p>lol...ich hatte doch jetzt in 3 Beiträgen erwähnt wie du *diesen* Fehler beheben kannst. Allerdings ergibt sich als nächstes Problem das nur ein leeres Bitmap (aber in der richtigen Größe) eingefügt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/548209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548209</guid><dc:creator><![CDATA[Trolli.]]></dc:creator><pubDate>Fri, 25 Jun 2004 21:06:21 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Fri, 25 Jun 2004 21:33:33 GMT]]></title><description><![CDATA[<p>Da hab ich ja gefragt, wie das verwendet wird <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/548230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548230</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Fri, 25 Jun 2004 21:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Sat, 26 Jun 2004 21:56:35 GMT]]></title><description><![CDATA[<p>OLE doesn't work with multiple threads. As far as I know, you have to<br />
do all OLE-related stuff from the same thread.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/548647</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548647</guid><dc:creator><![CDATA[quote]]></dc:creator><pubDate>Sat, 26 Jun 2004 21:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to In eine RichEditBox ohne MFC ein Icon ? on Sun, 27 Jun 2004 11:06:00 GMT]]></title><description><![CDATA[<p>Hi there,</p>
<p>i have defined my AddIcon Sub Routine, so that i can Add Icons from all Routines...</p>
<p>This Sub Gets the Ole Handle and Calls then the InsertBitmap Class.</p>
<p>But then i become an error.</p>
<p>When i call the AddIcon from the WndProc than all right.</p>
<p>Now i have done it.</p>
<p>I Send an Userdefined UserMessage ( SendMessage( hWndMain, WM_INSERTSMILIE, NULL, NULL ); )</p>
<p>And this WM_INSERTSMILIE i check in my WndProc.</p>
<p>So its all Right now.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/548810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/548810</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Sun, 27 Jun 2004 11:06:00 GMT</pubDate></item></channel></rss>