Richedit classes should be global.
This commit is contained in:
parent
4fee52683b
commit
65284aab20
|
@ -1479,7 +1479,7 @@ void ME_RegisterEditorClass(HINSTANCE hInstance)
|
||||||
WNDCLASSW wcW;
|
WNDCLASSW wcW;
|
||||||
WNDCLASSA wcA;
|
WNDCLASSA wcA;
|
||||||
|
|
||||||
wcW.style = CS_HREDRAW | CS_VREDRAW;
|
wcW.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
|
||||||
wcW.lpfnWndProc = RichEditANSIWndProc;
|
wcW.lpfnWndProc = RichEditANSIWndProc;
|
||||||
wcW.cbClsExtra = 0;
|
wcW.cbClsExtra = 0;
|
||||||
wcW.cbWndExtra = 4;
|
wcW.cbWndExtra = 4;
|
||||||
|
@ -1495,7 +1495,7 @@ void ME_RegisterEditorClass(HINSTANCE hInstance)
|
||||||
bResult = RegisterClassW(&wcW);
|
bResult = RegisterClassW(&wcW);
|
||||||
assert(bResult);
|
assert(bResult);
|
||||||
|
|
||||||
wcA.style = CS_HREDRAW | CS_VREDRAW;
|
wcA.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
|
||||||
wcA.lpfnWndProc = RichEditANSIWndProc;
|
wcA.lpfnWndProc = RichEditANSIWndProc;
|
||||||
wcA.cbClsExtra = 0;
|
wcA.cbClsExtra = 0;
|
||||||
wcA.cbWndExtra = 4;
|
wcA.cbWndExtra = 4;
|
||||||
|
|
Loading…
Reference in New Issue