2012/06/01
[MFC] System Menu에 "About..." 메뉴 추가하기
DialogBased 응용프로그램에서 시스템 메뉴에 사용자 메뉴를 추가하기 위해 찾은 정보이다.
<
Original Post : http://neodreamer-dev.tistory.com/658
////////////////////////////////////////////////////////////////////////////////
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
<
Original Post : http://neodreamer-dev.tistory.com/658
Labels:
About...
,
C++
,
CMenu
,
MFC
,
SystemMenu
,
TistoryOldPost
,
메뉴
,
시스템 메뉴
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment