diff --git a/uppsrc/CtrlCore/DHCtrl.cpp b/uppsrc/CtrlCore/DHCtrl.cpp index dbe28db01..d880f5deb 100644 --- a/uppsrc/CtrlCore/DHCtrl.cpp +++ b/uppsrc/CtrlCore/DHCtrl.cpp @@ -64,12 +64,11 @@ void DHCtrl::OpenHWND() GuiLock __; CloseHWND(); HWND phwnd = GetTopCtrl()->GetHWND(); - if(phwnd) { + if(phwnd) CreateWindowEx(0, "UPP-CLASS-A", "", WS_CHILD|WS_DISABLED|WS_VISIBLE, 0, 0, 20, 20, phwnd, NULL, hInstance, this); - } } void DHCtrl::SyncHWND() @@ -102,6 +101,7 @@ DHCtrl::DHCtrl() { hwnd = NULL; isdhctrl = true; + BackPaint(EXCLUDEPAINT); } DHCtrl::~DHCtrl() diff --git a/uppsrc/CtrlCore/Win32Wnd.cpp b/uppsrc/CtrlCore/Win32Wnd.cpp index b0689a53e..e4b43befc 100644 --- a/uppsrc/CtrlCore/Win32Wnd.cpp +++ b/uppsrc/CtrlCore/Win32Wnd.cpp @@ -8,7 +8,7 @@ namespace Upp { #define LOGTIMING 0 #ifdef _DEBUG -// #define LOGMESSAGES 1 +#define LOGMESSAGES 1 #endif #define ELOGW(x) // RLOG(GetSysTime() << ": " << x) // Only activate in MT! @@ -675,7 +675,7 @@ LRESULT CALLBACK Ctrl::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP } #endif LRESULT l = 0; - if(w && w->GetHWND()) { + if(w && (w->GetHWND() || w->isdhctrl)) { #if defined(_DEBUG) && LOGTIMING int ticks = msecs(); String wname = w->Name();