mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[RAPPS] Library load fixup in crichedit.h
svn path=/branches/GSoC_2017/rapps/; revision=75808
This commit is contained in:
parent
40b95d2e89
commit
d733214459
1 changed files with 9 additions and 3 deletions
|
@ -4,7 +4,8 @@
|
|||
class CRichEdit :
|
||||
public CWindow
|
||||
{
|
||||
HMODULE LoadedLibrary;
|
||||
HMODULE m_LoadedLibrary;
|
||||
|
||||
VOID GenericInsertText(LPCWSTR lpszText, LONG InsertedTextLen, DWORD dwEffects)
|
||||
{
|
||||
SETTEXTEX SetText;
|
||||
|
@ -24,6 +25,8 @@ class CRichEdit :
|
|||
}
|
||||
|
||||
public:
|
||||
CRichEdit() : CWindow(), m_LoadedLibrary(NULL) {}
|
||||
|
||||
VOID SetRangeFormatting(LONG Start, LONG End, DWORD dwEffects)
|
||||
{
|
||||
CHARFORMAT2W CharFormat;
|
||||
|
@ -84,7 +87,7 @@ public:
|
|||
|
||||
HWND Create(HWND hwndParent)
|
||||
{
|
||||
LoadedLibrary = LoadLibraryW(L"riched20.dll");
|
||||
m_LoadedLibrary = LoadLibraryW(L"riched20.dll");
|
||||
|
||||
m_hWnd = CreateWindowExW(0,
|
||||
L"RichEdit20W",
|
||||
|
@ -114,7 +117,10 @@ public:
|
|||
|
||||
~CRichEdit()
|
||||
{
|
||||
FreeLibrary(LoadedLibrary);
|
||||
if (m_LoadedLibrary)
|
||||
{
|
||||
FreeLibrary(m_LoadedLibrary);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue