Location:
Search - getsubmenu
Search list
Description: 如何在菜单中添加子菜单,MFC提供了一个菜单类CMenu以支持对菜单的动态操作。
Platform: |
Size: 61677 |
Author: ll |
Hits:
Description: 这是一个十分酷的菜单代码,及示例工程.此代码来源于一个老外的网站,相信大家下后一定会十分喜欢.我感觉这个菜单界面确实很好-This is a very cool menu code, and examples of projects. This code from the website of a foreigner, I believe we will after very fond of. I feel this is indeed a very good menu interface
Platform: |
Size: 78848 |
Author: 李滨 |
Hits:
Description: 如何在菜单中添加子菜单,MFC提供了一个菜单类CMenu以支持对菜单的动态操作。-How to add the menu sub-menu, MFC provides a type CMenu menu to support the dynamic operation of the menu.
Platform: |
Size: 161792 |
Author: ll |
Hits:
Description: 一套完整的某公司的石油钻井设计软件 源代码公布, 可供VC学习之用-A complete set of a company-CPen CString CBrush CWnd CDialog LoadResource CDataExchange CDC CRect GetClientRect SetBkMode CPalette CClientDC SelectPalette RealizePalette IsChild CStdioFile CFileException CFile GetDlgItem CButton DestroyIcon LoadIcon LoadAccelerators GetSystemMenu CMenu ModifyMenu ShowWindow SetWindowPos SetCursor GetPrinter GetLocalTime EndDoc TranslateAccelerator DestroyAcceleratorTable CPoint GetCapture ClientToScreen LoadMenu GetSubMenu TrackPopupMenu SetCapture ClipCursor SetROP2 SelectObject Rectangle ReleaseCapture MessageBox Beep ShowCursor Ellipse TextOut CStringList PtInRect CMDIChildWnd CView UpdateWindow CCmdUI CSize CControlBar CFrameWnd LoadCursor GetSysColorBrush GetWindowRect GetParent GetDlgCtrlID OffsetRect ExtractIcon MoveWindow SetRectEmpty CPaintDC CWindowDC ScreenToClient ExcludeClipRect IntersectClipRect FillRect GetSysColor ReleaseDC RedrawWindow LockWindowUpdate IsRectEmpty GetDCEx PatBlt CImageList GetStockObject CFont CCreateContext EnableWindow SetFocus SetWindowText Se
Platform: |
Size: 9515008 |
Author: madud00079 |
Hits:
Description: 写字板WinCE 上面开发的写字板,可以实现Windows上开发板的基本功能-wordpad CWnd CDialog CDataExchange MessageBeep EndDialog CFrameWnd SendMessage LoadString lstrlen lstrcpy CWinApp CString CCommandLineInfo CSingleDocTemplate ShowWindow UpdateWindow CDocument SetWindowText CEditView CDC CEdit CCmdUI GetWindowTextLength PostMessage CCreateContext GetFocus GetActiveWindow CPrintInfo GetDC GetTextMetrics ReleaseDC CRect GetWindowLong SetWindowLong CView CObject CMenu LoadMenu GetSubMenu GetParent TrackPopupMenu HideCaret ShowCaret
Platform: |
Size: 192512 |
Author: 涂正武 |
Hits:
Description: PB设置菜单的背景色 //使用API函数LoadImage()调入BITMAP图像
ls_BitMapFileName = Pic2.Bmp
ll_hBitMap = LoadImage(0, ls_BitMapFileName, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE)
//创建位图刷子
ll_BitMapBrush = CreatePatternBrush(ll_hBitmap)
//设置MENUINFO结构
lstr_MenuInfo.cbSize = 28
lstr_MenuInfo.cyMax = 0
lstr_MenuInfo.fMask = MIM_BACKGROUND
lstr_MenuInfo.hbrBack = ll_BitMapBrush
//获取窗口主菜单的句柄
ll_hMainMenu = GetMenu(ll_hwnd)
FOR i = 0 TO 2
//获取窗口指定子菜单的句柄
ll_hSubMenu = GetSubMenu(ll_hMainMenu, i)
//设置菜单信息
SetMenuInfo(ll_hSubMenu, lstr_MenuInfo)
//重新绘制菜单
DrawMenuBar(ll_hwnd)
END FOR
//释放对象
DeleteObject(ll_hBitMap)-Set menu background color
Platform: |
Size: 165888 |
Author: 花花 |
Hits: