CExTextFrame Class Reference

#include <ExTextFrame.h>

Inheritance diagram for CExTextFrame:
Inheritance graph
[legend]
Collaboration diagram for CExTextFrame:
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 ~CExTextFrame ()
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)
afx_msg void OnMove (int x, int y)

Public Attributes

CDocument * pDoc
CExTextViewpView
CAppCallBackpApp
CMultiDocTemplate * pTempl
CExToolBartoolBar
CString Title
CString preTitle
bool doneErrorMessage
bool cancelOperation
bool reSizeMoving

Protected Member Functions

 CExTextFrame ()

Detailed Description

Definition at line 30 of file ExTextFrame.h.


Constructor & Destructor Documentation

CExTextFrame (  )  [protected]

Definition at line 16 of file ExTextFrame.cpp.

00017 {
00018     //DEBUG_INFO("CONSTRUCTOR: CExTextFrame\n");
00019 
00020     pDoc        = NULL;
00021     pView       = NULL;
00022     pApp        = NULL;
00023     pTempl      = NULL;
00024 
00025     toolBar     = NULL;
00026 
00027     Title       = _T("");
00028     preTitle    = _T("");
00029 
00030     cancelOperation  = false;
00031     doneErrorMessage = false;
00032 
00033     reSizeMoving     = false;
00034 }

~CExTextFrame (  )  [virtual]

Definition at line 38 of file ExTextFrame.cpp.

References CAppCallBack::FrameDestructor(), CExTextFrame::pApp, CExTextFrame::pDoc, CExTextView::pFrame, and CExTextFrame::pView.

00039 {
00040     DEBUG_INFO("DESTRUCTOR: CExTextFrame: START\n");
00041 
00042     if (pApp!=NULL) {
00043         DEBUG_INFO("Call Application FrameDestructor()\n");
00044         pApp->FrameDestructor(this);    // 上位アプリケーションに通知
00045     }
00046 
00047     if (!isNull(pView)) pView->pFrame = NULL;
00048     pView = NULL;
00049     pDoc  = NULL;
00050 
00051     DEBUG_INFO("DESTRUCTOR: CExTextFrame: END\n");
00052 }

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 80 of file ExTextFrame.cpp.

00081 {
00082     dwStyle = dwStyle | WS_CLIPCHILDREN;
00083     dwStyle = dwStyle & (~WS_MAXIMIZEBOX);  // 最大化ボタン禁止
00084     return CMDIChildWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, pContext);
00085 }

LRESULT OnEnterSizeMove ( WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 108 of file ExTextFrame.cpp.

References CExTextFrame::reSizeMoving.

00109 {
00110     reSizeMoving = true;
00111     return 0;
00112 }

BOOL OnEraseBkgnd ( CDC *  pDC  ) 

Definition at line 125 of file ExTextFrame.cpp.

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

LRESULT OnExitSizeMove ( WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 115 of file ExTextFrame.cpp.

References CExTextFrame::reSizeMoving.

00116 {
00117     reSizeMoving = false;
00118     return 0;
00119 }

virtual void onLButtonDBLClick (  )  [inline, virtual]

Definition at line 58 of file ExTextFrame.h.

00058 {}

void OnMove ( int  x,
int  y 
)

Definition at line 152 of file ExTextFrame.cpp.

00153 {
00154     CMDIChildWnd::OnMove(x, y);
00155 
00156     // TODO: ここにメッセージ ハンドラー コードを追加します.
00157     this->OnPaint();
00158 }

void OnSizing ( UINT  fwSide,
LPRECT  pRect 
)

Definition at line 133 of file ExTextFrame.cpp.

References CExTextView::doReSize, CExTextView::GetClientSize(), CExTextView::GetWindowReSize(), CExTextView::GetWindowSize(), and CExTextFrame::pView.

00134 {
00135     POINT pt;
00136     pt.x = pRect->right - pRect->left;
00137     pt.y = pRect->bottom - pRect->top;
00138 
00139     pt = pView->GetClientSize(pt);
00140     pt = pView->GetWindowReSize(pt);
00141     pt = pView->GetWindowSize(pt);
00142 
00143     pRect->right  = pRect->left + pt.x;
00144     pRect->bottom = pRect->top  + pt.y;
00145     CMDIChildWnd::OnSizing(fwSide, pRect);
00146 
00147     pView->doReSize = true;
00148 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 52 of file ExTextFrame.h.

Definition at line 51 of file ExTextFrame.h.

Definition at line 43 of file ExTextFrame.h.

Referenced by jbxwl::ExecLogWnd(), and CExTextFrame::~CExTextFrame().

CDocument* pDoc

Reimplemented in CLogWndFrame.

Definition at line 40 of file ExTextFrame.h.

Referenced by CExTextFrame::~CExTextFrame().

CString preTitle

Definition at line 49 of file ExTextFrame.h.

CMultiDocTemplate* pTempl

Definition at line 44 of file ExTextFrame.h.

Referenced by jbxwl::ExecLogWnd().

Reimplemented in CLogWndFrame.

Definition at line 41 of file ExTextFrame.h.

Referenced by CExTextFrame::OnSizing(), CExTextFrame::~CExTextFrame(), and CExTextView::~CExTextView().

Definition at line 54 of file ExTextFrame.h.

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

CString Title

Definition at line 48 of file ExTextFrame.h.

Referenced by jbxwl::ExecLogWnd(), CLogWndView::SetTitle(), and CExTextView::SetTitle().

Definition at line 46 of file ExTextFrame.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