adjustments for GCC 3.4

svn path=/branches/lean-explorer/; revision=9710
This commit is contained in:
Martin Fuchs
2004-06-18 17:05:44 +00:00
parent 6936b33b44
commit d80f04c021
@@ -484,11 +484,11 @@ template<typename BASE> struct ResizeController : public BASE
virtual void GetClientSpace(PRECT prect)
{
if (!IsIconic(_hwnd)) {
GetClientRect(_hwnd, prect);
if (!IsIconic(this->_hwnd)) {
GetClientRect(this->_hwnd, prect);
} else {
WINDOWPLACEMENT wp;
GetWindowPlacement(_hwnd, &wp);
GetWindowPlacement(this->_hwnd, &wp);
prect->left = prect->top = 0;
prect->right = wp.rcNormalPosition.right-wp.rcNormalPosition.left-
2*(GetSystemMetrics(SM_CXSIZEFRAME)+GetSystemMetrics(SM_CXEDGE));
@@ -572,7 +572,7 @@ template<typename BASE> struct OwnerDrawParent : public BASE
switch(nmsg) {
case WM_DRAWITEM:
if (wparam) { // should there be drawn a control?
HWND hctl = GetDlgItem(_hwnd, wparam);
HWND hctl = GetDlgItem(this->_hwnd, wparam);
if (hctl)
return SendMessage(hctl, PM_DISPATCH_DRAWITEM, wparam, lparam);