News:

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

Setting the text of an editbox

Started by NewEasycoder, July 10, 2010, 03:49:00 AM

Previous topic - Next topic

NewEasycoder

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

Ramon Sala

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.

Greetings from Catalonia