CExFrame Class Reference

#include <ExFrame.h>

Inheritance diagram for CExFrame:
Inheritance graph
[legend]
Collaboration diagram for CExFrame:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void onLButtonDBLClick ()
virtual BOOL Create (LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle=WS_CHILD|WS_VISIBLE|WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN, const RECT &rect=rectDefault, CMDIFrameWnd *pParentWnd=NULL, CCreateContext *pContext=NULL)
virtual ~CExFrame ()
afx_msg LRESULT OnEnterSizeMove (WPARAM wParam, LPARAM lParam)
afx_msg LRESULT OnExitSizeMove (WPARAM wParam, LPARAM lParam)
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnSizing (UINT fwSide, LPRECT pRect)

Public Attributes

CString Title
CString preTitle
int colorMode
CExDocumentpDoc
CExViewpView
CAppCallBackpApp
CMultiDocTemplate * pTempl
void * anyData
CExToolBartoolBar
CScrollBar * hScrollBar
CScrollBar * vScrollBar
bool doneErrorMessage
bool cancelOperation
bool reSizeMoving

Protected Member Functions

 CExFrame ()

Detailed Description

Definition at line 30 of file ExFrame.h.


Constructor & Destructor Documentation

CExFrame (  )  [protected]

Definition at line 25 of file ExFrame.cpp.

00026 {
00027     //DEBUG_INFO("CONSTRUCTOR: CExFrame\n");
00028 
00029     pDoc        = NULL;
00030     pView       = NULL;
00031     pApp        = NULL;
00032     pTempl      = NULL;
00033     anyData     = NULL;
00034 
00035     toolBar     = NULL;
00036     vScrollBar  = NULL;
00037     hScrollBar  = NULL;
00038 
00039     Title       = _T("");
00040     preTitle    = _T("");
00041     colorMode   = GRAPH_COLOR_MONO;
00042 
00043     cancelOperation  = false;
00044     doneErrorMessage = false;
00045 
00046     reSizeMoving     = false;
00047 }

~CExFrame (  )  [virtual]

Definition at line 51 of file ExFrame.cpp.

References CAppCallBack::FrameDestructor(), CExFrame::pApp, CExFrame::pDoc, CExDocument::pFrame, CExView::pFrame, and CExFrame::pView.

00052 {
00053     DEBUG_INFO("DESTRUCTOR: CExFrame\n");
00054 
00055     if (pApp!=NULL) {
00056         DEBUG_INFO("Call Application FrameDestructor()\n");
00057         pApp->FrameDestructor(this);    // 上位アプリケーションに通知
00058     }
00059 
00060     if (!isNull(pView)) pView->pFrame = NULL;
00061     if (!isNull(pDoc))  pDoc->pFrame  = NULL;
00062     pView = NULL;
00063     pDoc  = NULL;
00064 }

Here is the call graph for this function:


Member Function Documentation

BOOL Create ( LPCTSTR  lpszClassName,
LPCTSTR  lpszWindowName,
DWORD  dwStyle = WS_CHILD|WS_VISIBLE|WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN,
const RECT &  rect = rectDefault,
CMDIFrameWnd *  pParentWnd = NULL,
CCreateContext *  pContext = NULL 
) [virtual]

Definition at line 91 of file ExFrame.cpp.

00092 {
00093     dwStyle = dwStyle | WS_CLIPCHILDREN;
00094     dwStyle = dwStyle & (~WS_MAXIMIZEBOX);  // 最大化ボタン禁止
00095     return CMDIChildWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, pContext);
00096 }

LRESULT OnEnterSizeMove ( WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 117 of file ExFrame.cpp.

References CExFrame::reSizeMoving.

00118 {
00119     reSizeMoving = true;
00120     return 0;
00121 }

BOOL OnEraseBkgnd ( CDC *  pDC  ) 

Definition at line 135 of file ExFrame.cpp.

00136 {
00137     // TODO: ここにメッセージ ハンドラ コードを追加するか、既定の処理を呼び出します.
00138     return CMDIChildWnd::OnEraseBkgnd(pDC);
00139 }

LRESULT OnExitSizeMove ( WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 124 of file ExFrame.cpp.

References CExFrame::reSizeMoving.

00125 {
00126     reSizeMoving = false;
00127     return 0;
00128 }

virtual void onLButtonDBLClick (  )  [inline, virtual]

Reimplemented in CvThumbNailFrame.

Definition at line 62 of file ExFrame.h.

Referenced by CDxVScrollView::OnLButtonDblClk().

00062 {}

Here is the caller graph for this function:

void OnSizing ( UINT  fwSide,
LPRECT  pRect 
)

Definition at line 143 of file ExFrame.cpp.

References CExView::doReSize, CExView::GetClientSize(), CExView::GetWindowReSize(), CExView::GetWindowSize(), and CExFrame::pView.

00144 {
00145     POINT pt;
00146     pt.x = pRect->right - pRect->left + 1;
00147     pt.y = pRect->bottom - pRect->top + 1;
00148 
00149     pt = pView->GetClientSize(pt);
00150     pt = pView->GetWindowReSize(pt);
00151     pt = pView->GetWindowSize(pt);
00152 
00153     pRect->right  = pRect->left + pt.x - 1;
00154     pRect->bottom = pRect->top  + pt.y - 1;
00155     CMDIChildWnd::OnSizing(fwSide, pRect);
00156 
00157     pView->doReSize = true;
00158 }

Here is the call graph for this function:


Member Data Documentation

void* anyData

Definition at line 48 of file ExFrame.h.

int colorMode

Definition at line 42 of file ExFrame.h.

Referenced by jbxwl::ExecTemplate().

CScrollBar* hScrollBar

Definition at line 51 of file ExFrame.h.

Reimplemented in CExSMPLDisp.

Definition at line 46 of file ExFrame.h.

Referenced by jbxwl::SetExLink(), and CExFrame::~CExFrame().

CString preTitle

Definition at line 41 of file ExFrame.h.

CMultiDocTemplate* pTempl

Definition at line 47 of file ExFrame.h.

Referenced by jbxwl::CreateDocFrmView().

Definition at line 57 of file ExFrame.h.

Referenced by CExFrame::OnEnterSizeMove(), and CExFrame::OnExitSizeMove().

CString Title

Definition at line 40 of file ExFrame.h.

Referenced by jbxwl::ExecDocFrmView(), and CExView::SetTitle().

Definition at line 50 of file ExFrame.h.

CScrollBar* vScrollBar

Definition at line 52 of file ExFrame.h.


The documentation for this class was generated from the following files:

Generated on 15 Nov 2023 for JunkBox_Win_Lib by  doxygen 1.6.1