¥ê¥Ã¥Á¥¨¥Ç¥£¥Ã¥ÈÆâ¤Î±£¤ì¤Æ¤¤¤ëʸ»ú½ÄÉý¤ò¼èÆÀ¤·¤¿¤¤¤Î¤Ç¤¹¤¬Îɤ¤ÊýË¡¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¡£
¹Ô¿ô¤«¤é·×»»¤·¤è¤¦¤È»×¤Ã¤¿¤Î¤Ç¤¹¤¬¥Õ¥©¥ó¥È¥µ¥¤¥º¤¬¤Ð¤é¤Ð¤é¤Î¾ì¹çÆñ¤·¤¤¤Ç¤¹¡£
ºÇ½ªÅª¤Ë¤Ê¤Ë¤ò¤·¤¿¤¤¤È¸À¤¦¤ÈÏȤ«¤é¤Ï¤ß½Ð¤·¤Æ¤¤¤ëʸ»ú¤¬½ÐÎϤµ¤ì¤ëÄ´ÅÙÎɤ¤Â礤µ¤Ë½Ä
Éý¤ò¥ê¥µ¥¤¥º¤·¤¿¤¤¤Ç¤¹¡£
Î㤨¤Ð¡¢²¼¤Î¥½¡¼¥¹¤Ç¥Ü¥¿¥ó¤ò²¡¤·¤¿¤È¤¤ËÆþÎϤµ¤ì¤Æ¤¤¤ëʸ»ú¤¬Á´Éô½ÐÎϤµ¤ì¤ë¤è¤¦½ÄÉý
¤ò·×»»¤·¤Æ¥ê¥µ¥¤¥º¤·¤¿¤¤¤Ç¤¹¡£
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£
#include "kernel32.as"
#include "user32.as"
LoadLibrary "RICHED20.DLL"
pos 0,0: winobj "RichEdit20A","",0,0x50800104,300,300
//pos 0,0: winobj "RichEdit20A","",0,0x50800004,300,300 // ¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤¢¤ê
hRich = objinfo_hwnd(stat)
mm="a\na\na\na\na\na\na\na\na\na\na\na\na\na\na\nx\n"
sendmsg hRich, $000000C2, 1, varptr(mm) // EM_REPLACESEL
pos 300,0: button "¥ê¥µ¥¤¥º", *bb
stop
*bb
sy=400 // ¢«¤³¤³¤Î½ÄÉý¤ò·×»»¤·¤¿¤¤¤Ç¤¹¡£
MoveWindow hRich,0,0,300,sy,1
stop