【HSP3】DrawTextW にて特殊文字の改行

DT_EDITCONTROL を付けるといいよ?

DT_EDITCONTROL を付けるといいよ?

  • タグ:
  • タグはありません
#include "user32.as"
#define DT_WORDBREAK		0x00000010
#define DT_EDITCONTROL		0x00002000

	font "メイリオ",32,16

	string.0 = 0x0bf50bf5,0x0bf50bf5,0x0bf50bf5,0x0bf50bf5,0x0bf50bf5,0x0bf50bf5
	string.6 = 0x0bf50bf5,0x0bf50bf5,0x0bf50bf5,0x0bf50bf5,0x0bf50bf5,0x0bf50bf5

	rect = 0, 0, 640, 480
	DrawTextW hdc, varptr(string), -1, varptr(rect), DT_WORDBREAK | DT_EDITCONTROL
	redraw