1 #ifndef __SELECTREGION_H__
2 #define __SELECTREGION_H__
6 #include "UISmartPointer.h"
7 #include "selectionrect.h"
11 class UIDirect3DPrimaryCanvas
;
13 class SelectRegionDialogBox
17 SelectRegionDialogBox( void );
19 bool EditProperty( HWND hwndParent
, UIImageStyle
*theStyle
, UIString
&Value
);
20 bool EditProperty( HWND hwndParent
, UIImage
*theImage
, UIString
&Value
);
24 void UpdateTextbox( void );
25 void UpdateSelectionRect( void );
26 void ReadRectFromTextbox( void );
27 void EnableControls( void );
28 void UpdateScrollbars( HWND hwnd
, const UIPoint
* center
= 0 );
29 void UpdateCanvasScrollPosition( HWND hwnd
, UINT uMsg
, WPARAM wParam
);
30 void SizeToContent( void );
31 void ShowZoomLevel( void );
32 LPARAM
InverseTranslateLParam( LPARAM
);
34 BOOL CALLBACK
DialogProc( HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
35 BOOL CALLBACK
CanvasProc( HWND hwnd
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
37 static BOOL CALLBACK
StaticDialogProc( HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
38 static BOOL CALLBACK
StaticCanvasProc( HWND hwnd
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
43 UISmartPointer
<UIImageStyle
> mStyle
;
44 UISmartPointer
<UIImage
> mImage
;
45 UIDirect3DPrimaryCanvas
*mDisplay
;
52 UIPoint mScrollOffset
;
54 SelectionRect mSelectionRect
;
57 static SelectRegionDialogBox
*sThis
;
60 #endif // __SELECTREGION_H__