cnavarro wrote:Enrico
I think I misunderstood your problem:
A. - You want a caption with more than 140 characters
B. - Check that the caption does not have more than 140 characters
Daniel Garcia-Gil wrote:Enrico
try with
wLen += ( iLenUnicode * 2 ) + 1;
Daniel Garcia-Gil wrote:what C compiler are you using?
Daniel Garcia-Gil wrote:Enrico
try with
wLen += ( iLenUnicode * 2 ) + 1;
wLen += iLenUnicode;
Enrico Maria Giordano wrote:CODE: SELECT ALL EXPAND VIEW
wLen += iLenUnicode;
it seems to work fine. What is your opinion about this possible fix?
Daniel Garcia-Gil wrote:Enrico Maria Giordano wrote:CODE: SELECT ALL EXPAND VIEW
wLen += iLenUnicode;
it seems to work fine. What is your opinion about this possible fix?
if work is fine
In a standard template for a dialog box, the DLGTEMPLATE structure is always immediately followed by three variable-length arrays that specify the menu, class, and title for the dialog box. When the DS_SETFONT style is specified, these arrays are also followed by a 16-bit value specifying point size and another variable-length array specifying a typeface name. Each array consists of one or more 16-bit elements. The menu, class, title, and font arrays must be aligned on WORD boundaries.
...
Following the class array is a title array that specifies a null-terminated Unicode string that contains the title of the dialog box. If the first element of this array is 0x0000, the dialog box has no title and the array has no other elements.
...
Enrico Maria Giordano wrote:Daniel,
So what? Are you trying to say that my "fix" can be correct?
EMG
Enrico Maria Giordano wrote:The problem is that I don't understand the code of cDlg2Chr() function very well so I found that "fix" with trial and error.
Daniel Garcia-Gil wrote:no i'm trying explain you...
wLen += ( iLenUnicode * 2 );
wLen += iLenUnicode;
Return to Bugs report & fixes / Informe de errores y arreglos
Users browsing this forum: No registered users and 2 guests