LRasterPaintWindow::GetPaintRegion
#include "Ltwrappr.h"
PAINTREGION * LRasterPaintWindow::GetPaintRegion()
Gets the paint region properties.
Returns
Pointer to a PAINTREGION structure that contains the current paint region properties.
Comments
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
LTPNT For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
Example
void OnPropsRegion(LRasterPaintWindow *pRasterPntWnd, HWND hWnd, LRasterDialog *pPaintDialog)
{
PAINTDLGREGIONINFO RegionDlgInfo;
PAINTREGION* pPaintRegion = pRasterPntWnd->GetPaintRegion();
L_INT nRetCode;
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;
nRetCode = pPaintDialog->DoModalRegion(hWnd, &RegionDlgInfo);
if(nRetCode == 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);
}
}