MDI (1) 썸네일형 리스트형 SDI, MDI 기반의 프로젝트에서 타이틀바 내용 변경하기(CREATESTRUCT structure) BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style &= ~FWS_ADDTOTITLE ; cs.lpszName = "Maestro Server Ver1.0"; // SetWindowText("Maestro Server Ver1.0") 대체 가능 // 단, OnCreate() 에서의 호출을 추천 // 덤으로 cs.cx, cx.cy 등을 이용하면 프로그램 틀의 크기 조정도 가능하다. return TRUE; } 이전 1 다음