Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. .if uMsg == WM_DESTROY
  2. invoke PostQuitMessage, 0
  3.  
  4. .elseif uMsg == WM_CREATE
  5.  
  6. //Create Buttoon for Addition
  7.  
  8. invoke CreateWindowEx, NULL, addr ButtonClassName, addr ButtonAdd, WS_CHILD or WS_VISIBLE or BS_DEFPUSHBUTTON, 225, 10, 120, 30, hWnd, ButtonID, hInstance, NULL
  9. mov hButton, eax
  10.  
  11.  
  12.  
  13.  
  14. //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
  15.  
  16. invoke CreateWindowEx, WS_EX_CLIENTEDGE, addr EditClassName, NULL, WS_CHILD or WS_VISIBLE, 10, 10, 120, 30, hWnd, EditID, hInstance, NULL
  17. mov hEdit, eax
  18. invoke CreateWindowEx, WS_EX_CLIENTEDGE, addr EditClassName, NULL, WS_CHILD or WS_VISIBLE, 10, 50, 120, 30, hWnd, EditID, hInstance, NULL
  19. mov hEdit, eax
  20. invoke CreateWindowEx, WS_EX_CLIENTEDGE, addr EditClassName, NULL, WS_CHILD or WS_VISIBLE, 10, 110, 120, 30, hWnd, EditID, hInstance, NULL
  21. mov hEdit, eax
  22.  
  23. .elseif uMsg == WM_COMMAND
  24. mov eax, wParam
  25. .if eax == ButtonID // Here when add button add is click it will perform the add operation.
  26. shr eax, 16
  27. .if ax == BN_CLICKED
  28. //code here to perform operations when click.
  29.  
  30. .endif
  31. .endif
  32.  
  33. .else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement