Hello,
I have put here the final version
a sample of use:
The goal is to switch easily from ansi to unicode
.const
REBARCLASSNAME equ <"ReBarWindow32">
.data
;works with ANSI or __UNICODE__ (UNICODE for .h and sdk translate)
AU(szclassname,%REBARCLASSNAME,0)
AU(speech,"first sentence",13,10)
AU(/,"second sentence",13,10)
AU(/,"end",0)
.code
start:
mov edx,sizeof szclassname
mov ecx,LENGTHOF szclassname
invoke lstrlen,addr speech ;lstrlenA or lstrlenW
lea edx,speech
invoke MessageBox,NULL,addr speech,\
addr NAU(atitre,"Default title",0),MB_OK
invoke MultiSize,addr NAU(firsttexte,"123456789012345678901234567",0),lengthof firsttexte -1,\
addr NAU(secondtexte,"12345678901234",0),lengthof secondtexte -1