summaryrefslogtreecommitdiff
path: root/iup/srcole/tOleInPlaceSite.cpp
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
commiteed0eb6a476d54ce19aeff137984aa981d9e3976 (patch)
tree807891636efd2f87dcbd261e971216269973ae07 /iup/srcole/tOleInPlaceSite.cpp
parentccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff)
Upgrading to iup 3.1
Diffstat (limited to 'iup/srcole/tOleInPlaceSite.cpp')
-rwxr-xr-xiup/srcole/tOleInPlaceSite.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/iup/srcole/tOleInPlaceSite.cpp b/iup/srcole/tOleInPlaceSite.cpp
index 977777c..de55653 100755
--- a/iup/srcole/tOleInPlaceSite.cpp
+++ b/iup/srcole/tOleInPlaceSite.cpp
@@ -477,7 +477,17 @@ STDMETHODIMP tOleInPlaceSite::Scroll(SIZE sz)
STDMETHODIMP tOleInPlaceSite::OnPosRectChange(LPCRECT prcPos)
{
if (NULL!=prcPos)
+ {
+ // This change was necessary because some controls were not working, and being positioned in a wrong place.
+ // Contribution by Kommit
+ LPRECT pPos = (LPRECT)prcPos; // convert the const pointer to non-const pointer to modify it's member values.
+ pPos->right -= pPos->left;
+ pPos->bottom -= pPos->top;
+ pPos->left = 0;
+ pPos->top = 0;
+
m_pTen->m_rcPos=*prcPos;
+ }
m_pTen->UpdateInPlaceObjectRects(prcPos, FALSE);
return NOERROR;