#include "Ltwrappr.h"
PAINTREGION * LRasterPaintWindow::GetPaintRegion()
Gets the paint region properties.
Pointer to a PAINTREGION structure that contains the current paint region properties.
If this function is called before LRasterPaintWindow::SetPaintRegion has been called, the default values will be returned. For more information about the default property values, refer to:
LRasterPaintWindow::Initialize must be called before calling this function.
Required DLLs and Libraries
L_INT LRasterPaintWindow_GetPaintRegionExample(LRasterPaintWindow *pRasterPntWnd, HWND hWnd, LRasterDialog *pPaintDialog)
{
L_INT nRet;
PAINTDLGREGIONINFO RegionDlgInfo;
PAINTREGION* pPaintRegion = pRasterPntWnd->GetPaintRegion();
RegionDlgInfo.dwFlags = PAINT_DLG_REGION_SHOWALL;
RegionDlgInfo.pszTitle = TEXT("Region Properties");
RegionDlgInfo.crLowerTolerance = pPaintRegion->crLowerTolerance;
RegionDlgInfo.crUpperTolerance = pPaintRegion->crUpperTolerance;
RegionDlgInfo.nRoundRectEllipseWidth = pPaintRegion->nRoundRectEllipseWidth;
RegionDlgInfo.nRoundRectEllipseHeight = pPaintRegion->nRoundRectEllipseHeight;
nRet = pPaintDialog->DoModalRegion(hWnd, &RegionDlgInfo);
if(nRet == SUCCESS)
{
pPaintRegion->nSize = sizeof(PAINTREGION);
pPaintRegion->dwMask = PRF_ALL;
pPaintRegion->crLowerTolerance = RegionDlgInfo.crLowerTolerance;
pPaintRegion->crUpperTolerance = RegionDlgInfo.crUpperTolerance;
pPaintRegion->nRoundRectEllipseWidth = RegionDlgInfo.nRoundRectEllipseWidth;
pPaintRegion->nRoundRectEllipseHeight = RegionDlgInfo.nRoundRectEllipseHeight;
pRasterPntWnd->SetPaintRegion(pPaintRegion);
}
return nRet;
}