[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);
}
"Programming" 분류의 다른 글
| [문서] Vegas에서 DivX 읽기 | 2007/06/03 |
| [펌] SDI, MDI 시 각종 포인터 얻기 | 2009/02/24 |
| [PAIM/FLEX] HttpService script 내에서 사용하기 | 2008/07/06 |
| [HTML] Div 속성 | 2008/03/28 |
| [Javascript] Ajax를 통해 PHP에서 처리를 위한 Textarea의 javascript 적인... | 2009/02/13 |
Programming
2008/02/22 20:22




댓글을 달아 주세요