The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: NewEasycoder on July 10, 2010, 03:49:00 AM

Title: Setting the text of an editbox
Post by: NewEasycoder on July 10, 2010, 03:49:00 AM
Hi how do I set the text of an editbox?

.Data
String1            DB "This is a string"

.Code
Window1Button1 Frame hWnd, uMsg, wParam, lParam
   Xor Eax, Eax   ;Return (FALSE)
      Invoke SetText, WindowEdit1.hWnd, Addr String1 <- error on this line perhaps this is not the way to get the hwnd of the editbox?
   Ret
EndF
Title: Re: Setting the text of an editbox
Post by: Ramon Sala on July 10, 2010, 07:59:47 AM
Hi NewEasycoder,

I attach a very simple project that sets the text of an edit box when pressing a button.

Please read the Easy Ciode help file.