검색결과 리스트
글
SDI에서 타이틀바(캡션)을 없애기 위해 CMainFrm에 PreCreateWindow함수의 cs.style을 설정하는 경우가 많은데 시스템 메뉴는 없어지나 캡션자체는 없어지지 않는다.
WS_CATION 자체가 CreateWindowEx보다 더 상위 레벨에서 할당되어지기 때문이다.
다음은 MSDN의 내용중...
"Construct a CFrameWnd object in two steps. First, invoke the constructor, which constructs the CFrameWnd object, and then call LoadFrame, which loads the Windows frame window and associated resources and attaches the frame window to the CFrameWnd object. The nIDResource parameter specifies the menu, the accelerator table, the icon, and the string resource of the title for the frame window.
Use the Create member function rather than LoadFrame when you want to specify all of the frame window's creation parameters.
The framework calls LoadFrame when it creates a frame window using a document template object.
The framework uses the pContext argument to specify the objects to be connected to the frame window, including any contained view objects. You can set the pContext argument to NULL when you call LoadFrame."
결국 LoadFrame을 오버라이딩 해서 프레임을 부를때 스타일을 수정해주어야 한다.
'IT 이야기 > Programming' 카테고리의 다른 글
| [Tool] Debug View (0) | 2008/04/18 |
|---|---|
| [Ruby] MP3 File 리스트 작성 프로그램 (0) | 2008/04/18 |
| [MFC] SDI에서 타이틀바(캡션) 없애기 (0) | 2008/04/18 |
| UDDI4j를 이용한 UDDI 클라이언트 (0) | 2008/04/18 |
| Eclipse용 Ruby Development Tools (RDT) 플러그인 사용법 (0) | 2008/04/18 |
| MFC 클래스간 통신 (0) | 2008/04/15 |