2012-02-20 16:28 by Clingingboy, 160 visits, 网摘, 收藏, 编辑
摘要:模态窗体的实现 bool CWindowWnd::ShowModal(){ ASSERT(::IsWindow(m_hWnd)); HWND hWndParent = GetWindowOwner(m_hWnd); ::ShowWindow(m_hWnd, SW_SHOWNORMAL); ::EnableWindow(hWndPa...
阅读全文
2012-02-14 16:33 by Clingingboy, 127 visits, 网摘, 收藏, 编辑
摘要:参考:http://msdn.microsoft.com/en-us/library/bb761389(VS.85).aspx ImageList_Create Creates a new image list. ImageList_AddIcon Adds an icon or cursor to an image list. ImageList_AddIcon ca...
阅读全文
2012-02-14 12:47 by Clingingboy, 130 visits, 网摘, 收藏, 编辑
摘要:漏了写总是心里不舒服2.1 如何动态添加和删除菜单项四个方法:AppendMenu,InsertMenu,RemoveMenu,DeleteMenu/////////////////////////////////////////////////////////////////////////////// CMainFrame message handlersvoid CMainFrame::OnAppendMenu() { //获得主菜单 CMenu* pMenu = GetMenu(); //获得子菜单 CMenu* pSubMenu = pMenu->GetSub...
阅读全文