News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Put text to EditBox

Started by trodon, August 22, 2006, 09:12:36 PM

Previous topic - Next topic

trodon

Can someone explain me how to change or add some text in edit box, when push button.
for example attached file?
thanks

[attachment deleted by admin]

drizz

modify it like this:

.elseif eax==WM_COMMAND
;; USE MENU: Tools->Export ID Equ's (Ctrl+F11) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
;; and put equs in the inc file
IDC_BTN1 equ 1001
IDC_EDT2 equ 1002
movzx eax,word ptr wParam[0]; get LOWORD of wParam
movzx edx,word ptr wParam[2]; get HIWORD of wParam
.if edx == BN_CLICKED; is button clicked?
.if eax == IDC_BTN1; is it button 1?
;; set your text...
invoke SetDlgItemText,hWin,IDC_EDT2,addr Text4EditBox
.endif
.endif
The truth cannot be learned ... it can only be recognized.

trodon

thanks drizz its working  :U