thanks
mpgi must say that i never see before that m$ library name and most of my programming
is GUI programming..."Msftedit"
so i changed it by loading dll name
and then create rich edit control , also i strech main window to 800 px to put
control on right side of window ES_SUNKEN is just addition style and muliline is created with
constant
&H50B010C4here is code :
'-- RichEdit control ...&H50B010C4 is multiline richedit constant to minimize typing
reID = 400 ' control ID
t0
= "RICHEDIT20A" + CHR$(0) ' class name t1
= "This is a multiline" + Crlf
+ "Rich edit control." + CrLf
+ "Click in me and type." + CrLf
+ "It should scroll automatically in both directions" + CrLf
+ "Close the window to see the text printed to the console." + CHR$(0) hwRE
= CreateWindowExA
(WS_EX_CLIENTEDGE
, _OFFSET(t0
), _OFFSET(t1
), &H50B010C4 OR ES_SUNKEN
, 410, 24, 380, 400, hw
, reID
, 0, 0)
I am not sure why string need to use _OFFSET...is this string pointer or general purpose pointer which just read content from
variable address ..but ok ..