Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .if uMsg == WM_DESTROY
- invoke PostQuitMessage, 0
- .elseif uMsg == WM_CREATE
- //Create Buttoon for Addition
- invoke CreateWindowEx, NULL, addr ButtonClassName, addr ButtonAdd, WS_CHILD or WS_VISIBLE or BS_DEFPUSHBUTTON, 225, 10, 120, 30, hWnd, ButtonID, hInstance, NULL
- mov hButton, eax
- //Create 3 TextBox. First text box for 1st input, Second TextBox for 2nd input, 3rd TextBox to show the result from added First textBox and Second texbox value
- invoke CreateWindowEx, WS_EX_CLIENTEDGE, addr EditClassName, NULL, WS_CHILD or WS_VISIBLE, 10, 10, 120, 30, hWnd, EditID, hInstance, NULL
- mov hEdit, eax
- invoke CreateWindowEx, WS_EX_CLIENTEDGE, addr EditClassName, NULL, WS_CHILD or WS_VISIBLE, 10, 50, 120, 30, hWnd, EditID, hInstance, NULL
- mov hEdit, eax
- invoke CreateWindowEx, WS_EX_CLIENTEDGE, addr EditClassName, NULL, WS_CHILD or WS_VISIBLE, 10, 110, 120, 30, hWnd, EditID, hInstance, NULL
- mov hEdit, eax
- .elseif uMsg == WM_COMMAND
- mov eax, wParam
- .if eax == ButtonID // Here when add button add is click it will perform the add operation.
- shr eax, 16
- .if ax == BN_CLICKED
- //code here to perform operations when click.
- .endif
- .endif
- .else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement