MenuToolbar.Inc
上传用户:yoyoxiao
上传日期:2021-10-16
资源大小:31k
文件大小:2k
- include windows.inc
- include user32.inc
- include kernel32.inc
- include shell32.inc
- include comctl32.inc
- include comdlg32.inc
- include masm32.inc
- include gdi32.inc
- includelib user32.lib
- includelib kernel32.lib
- includelib shell32.lib
- includelib comctl32.lib
- includelib comdlg32.lib
- includelib masm32.lib
- includelib gdi32.lib
- WinMain PROTO :DWORD,:DWORD,:DWORD,:DWORD
- WndProc PROTO :DWORD,:DWORD,:DWORD,:DWORD
- CreateToolBar PROTO
- BuildMenus PROTO
- SubClassTB PROTO :HWND,:UINT,:WPARAM,:LPARAM
- ;include RadASMmasmincdebug.inc
- ;includelib RadASMmasmlibdebug.lib
- ;
- ;DBGWIN_DEBUG_ON = 1 ; include debug info into the program
- ;DBGWIN_EXT_INFO = 1 ; include extra debug info into the program
- .data
- ClassName db 'DLGCLASS',0
- DlgName db 'MyDialog',0
- DllName db 'TestDll.dll',0
- szInstallHook db 'InstallHook',0
- Mnu0Item0 db "&Menu 0 Item 0",0
- Mnu0Item1 db "Menu 0 Item 1",0
- Mnu0Item2 db "Menu 0 Item 2",0
- Mnu1Item0 db "Menu 1 Item 0",0
- Mnu1Item1 db "Menu 1 Item 1",0
- Mnu1Item2 db "Menu 1 Item 2",0
- Mnu1Item3 db "Menu 1 Item 3",0
- Mnu1Item4 db "Menu 1 Item 4",0
- Mnu1Item5 db "Menu 1 Item 5",0
- Mnu2Item0 db "Menu 2 Item 0",0
- Mnu2Item1 db "Menu 2 Item 1",0
- Mnu2Item2 db "Menu 2 Item 2",0
- Mnu2Item3 db "Menu 2 Item 3",0
- Mnu3Item0 db "Menu 3 Item 0",0
- Mnu3Item1 db "Menu 3 Item 1",0
- TbStrings db "Menu &0",0
- db "Menu &1",0
- db "Menu &2",0
- db "Menu &3",0,0
- ; Start the button IDs at one so we don't use 0 (we'll have to dec in order to get the right menu)
- TbBtns TBBUTTON <0,1,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE or TBSTYLE_DROPDOWN,0,0,0>
- TBBUTTON <1,2,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE or TBSTYLE_DROPDOWN,0,0,1>
- TBBUTTON <3,3,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE or TBSTYLE_DROPDOWN,0,0,2>
- TBBUTTON <4,4,TBSTATE_ENABLED,TBSTYLE_AUTOSIZE or TBSTYLE_DROPDOWN,0,0,3>
- nTbBtns dd ($-TbBtns)/TBBUTTON
- CapFont LOGFONT <-15,0,0,0,FW_BOLD,FALSE,FALSE,0,0,0,0,0,0,"Comic Sans MS">
- .data?
- hInstance dd ?
- CommandLine dd ?
- hWnd dd ?
- hToolBar dd ?
- hHook dd ?
- hHookDll dd ?
- pInstallHook dd ?
- CurrentBtn dd ?
- nmtb NMTOOLBAR <>
- hMenus dd 4 DUP (?)
- hBkGrnd dd ?
- hBmp dd ?
- hFont dd ?