본문 바로가기

Windows/MFC

메인 윈도우 타이틀을 변경 (Change Title)

[code]BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
    if( !CFrameWnd::PreCreateWindow(cs) )
        return FALSE;
    // TODO: Modify the Window class or styles here by modifying
    // the CREATESTRUCT cs

    // Untitle 삭제해주기
    cs.style &= ~ FWS_ADDTOTITLE;
    // 이후 SetWindowText 하면됨

    return TRUE;
}[/code]