[MFC] 분할윈도우(Splitter Window)

하나의 프레임 윈도우를 2개이상으로 나눌때

1. Dialog 생성

2. Insert  메뉴에서 new calss

3. MFC Class -- C******
   Base Class -- CFormView (DB접근시 CRecordView)

4. ClassView 탭에서
   -->Add Virtual Function -->onInitialUpdate : Update부분

5. CMainFrame 에서
   -->Add Virtual Function -->OnCreateClient 

헤더파일
CSplitterWnd m_wndSplitterWnd; ///분할 윈도우 선언

소스파일
(C****View 는 생성한 뷰 클래스)
//to do 이하
 m_wndSplitterWnd.CreateStatic(this, 3, 1);/// 3행 1열 분할 윈도우 생성
 m_wndSplitterWnd.CreateView(0, 0, RUNTIME_CLASS(C*****View),
                                              CSize(100,100), pContext);
 return true;
위에서 두번째 0은 분할 윈도우의 인덱스

by 일찍자라 | 2006/09/06 05:07 | Knowledge-Warehouse | 트랙백 | 덧글(2)

Commented by yeoshim at 2006/10/11 11:16
-->Add Virtual Function -->onInitialUpdate :
...
-->Add Virtual Function -->OnCreateClient

MFC, 안습인데 ㅡㅡ.
Commented by 일찍자라 at 2006/10/13 11:03
ㅋㅋ
※ 이 포스트는 더 이상 덧글을 남길 수 없습니다.

◀ 이전 페이지          다음 페이지 ▶