摘要:
模态窗体的实现 bool CWindowWnd::ShowModal(){ ASSERT(::IsWindow(m_hWnd)); HWND hWndParent = GetWindowOwner(m_hWnd); ::ShowWindow(m_hWnd, SW_SHOWNORMAL); ::EnableWindow(hWndPa... 阅读全文
随笔档案-2012年02月
Windows Image Lists
2012-02-14 16:33 by Clingingboy, 613 阅读, 收藏, 编辑
摘要:
参考: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... 阅读全文
Win32 菜单光标
2012-02-14 12:47 by Clingingboy, 1159 阅读, 收藏, 编辑
摘要:
漏了写总是心里不舒服2.1 如何动态添加和删除菜单项四个方法:AppendMenu,InsertMenu,RemoveMenu,DeleteMenu/////////////////////////////////////////////////////////////////////////////// CMainFrame message handlersvoid CMainFrame::OnAppendMenu() { //获得主菜单 CMenu* pMenu = GetMenu(); //获得子菜单 CMenu* pSubMenu = pMenu->GetSub... 阅读全文