[PAIM&MFC] 메뉴 없는 윈도우

원문 : http://caf ··· id%3D966


BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)

{

       // TODO: Modify the Window class or styles here by modifying

       //  the CREATESTRUCT cs

       cs.style=WS_VISIBLE | WS_POPUP | WS_BORDER;

       int cx=GetSystemMetrics(SM_CXFULLSCREEN);

       int cy=GetSystemMetrics(SM_CYFULLSCREEN);

       cs.cx=640;

       cs.cy=480;

       cs.x=(cx-640)/2;

       cs.y=(cy-480)/2;;

       CMenu *pMenu= new CMenu;

       pMenu->Attach(cs.hMenu);

       pMenu->DestroyMenu();

       cs.hMenu=NULL;

       delete pMenu;

       return CFrameWnd::PreCreateWindow(cs);

}

2008/02/22 20:22 2008/02/22 20:22
JUNN
tags : 이올린 태그검색올블로그 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색티스토리 태그검색, 이올린 태그검색올블로그 태그검색티스토리 태그검색
Programming 2008/02/22 20:22

트랙백 주소 : http://www.junn.net/tt/trackback/150

댓글을 달아 주세요

[로그인][오픈아이디란?]

Powerd by Textcube,designed by criuce, Revised by JUNN