diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
commit | 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch) | |
tree | 62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/CToggleButtonDisabled.cpp | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/CToggleButtonDisabled.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/T2DLL/CToggleButtonDisabled.cpp b/src/T2DLL/CToggleButtonDisabled.cpp index f69f8cc..a175bbc 100644 --- a/src/T2DLL/CToggleButtonDisabled.cpp +++ b/src/T2DLL/CToggleButtonDisabled.cpp @@ -1,6 +1,12 @@ #include "CToggleButtonDisabled.h" #include "T2BitImage.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + CToggleButtonDisabled::CToggleButtonDisabled(T2TowerDoc* towerDoc, T2ImageObj* imageObj, CPalette* palette) : T2DlgItem(towerDoc, imageObj, palette) { @@ -43,8 +49,8 @@ void CToggleButtonDisabled::Disable() { } /*virtual*/ BOOL CToggleButtonDisabled::OnT2DlgItemEraseBkgnd(CDC* dc) { - CRect clientRect; - GetClientRect(clientRect); + CRect theClientRect; + GetClientRect(theClientRect); int savedDC = dc->SaveDC(); @@ -52,15 +58,15 @@ void CToggleButtonDisabled::Disable() { dc->RealizePalette(); CPen pen; - CBrush brush; + CBrush theBrush; CString text; GetWindowText(text); - RECT imageRect; - T2BitImage *image = GetObjectImage(imageRect, text, GetPattern()); - if (image) - image->CopyImage(dc, imageRect, clientRect, 0, NULL); + RECT theImageRect; + T2BitImage *theImage = GetObjectImage(theImageRect, text, GetPattern()); + if (theImage) + theImage->CopyImage(dc, theImageRect, theClientRect, 0, NULL); dc->RestoreDC(savedDC); |