.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
includelib user32.lib
includelib kernel32.lib
ICO_MAIN equ 1000h
IDA_MAIN equ 2000h
IDM_MAIN equ 2000h
IDM_EDIT equ 2001h
IDM_LOOK equ 2003h
IDM_LOOKHELP equ 2004h
IDM_GUANYU equ 2005h
IDM_FUZHI equ 2006h
IDM_ZHANTIE equ 2007h
IDM_OLDRECORD equ 2008h
IDM_STD equ 2009h
IDM_SCI equ 2010h
IDM_PRO equ 2011h
IDM_LISHI equ 2012h
IDM_TOTAL equ 2013h
IDM_SHUZI equ 2014h
IDM_JIBEN equ 2015h
IDM_CHANGE equ 2016h
IDM_DATE equ 2017h
IDM_SHEET equ 2018h
DLG_MAIN equ 100
IDC_TEXT equ 101
IDC_MC equ 102
IDC_MR equ 103
IDC_MS equ 104
IDC_MH equ 105
IDC_MK equ 106
IDC_BACK equ 107
IDC equ 0
IDC1 equ 1
IDC2 equ 2
IDC3 equ 3
IDC4 equ 4
IDC5 equ 5
IDC6 equ 6
IDC7 equ 7
IDC8 equ 8
IDC9 equ 9
IDC_CE equ 10
IDC_C equ 11
IDC_ZHENFU equ 12
IDC_DOT equ 13
IDC_ADD equ 14
IDC_MUL equ 15
IDC_DIV equ 16
IDC_SUB equ 17
IDC_PERCENT equ 18
IDC_GENHAO equ 19
IDC_DENGHAO equ 20
IDC_BILIE equ 21
.data?
hInstance dd ?
hMenu dd ?
hAccelerator dd ?
hDlg dd ?
.code
szInit db ' adsad' ,0
szend db '[%d]',0ah,0dh
_ADD proc
ret
_ADD endp
_SUB proc
_SUB endp
_DIV proc
_DIV endp
_MUL proc
_MUL endp
_ProcDlgMain proc uses ebx esi edi hWnd,wMsg,wParam,lParam
local @szBuffer[512]:byte
mov eax ,wMsg
.if eax ==WM_CLOSE
invoke EndDialog , hWnd,NULL
.elseif eax == WM_INITDIALOG
invoke LoadMenu ,hInstance,IDM_MAIN
mov hMenu , eax
invoke wsprintf , addr @szBuffer ,addr szInit
.elseif eax == WM_COMMAND
mov eax ,wParam
.if ax == IDC_ADD
call _ADD
.endif
.else
mov eax ,FALSE
ret
.endif
mov eax ,TRUE
ret
_ProcDlgMain endp
start:
invoke GetModuleHandle ,NULL
mov hInstance , eax
invoke DialogBoxParam,hInstance,DLG_MAIN ,NULL,offset _ProcDlgMain ,NULL
mov hDlg ,eax
invoke ExitProcess,NULL
end start
这是我的代码,但是不知道为什么显示不了菜单栏
|