Okay I'm trying to retrieve the CHARFORMAT of the Selected text of a Rich edit control but for someon reason the code I have won't fill in the CHARFORMAT type:
CASE %WM_NOTIFY
SELECT CASE CBWPARAM
CASE 105
nh = CBLPARAM
SELECT CASE @nh.code
CASE %EN_SELCHANGE
mask& = SendMessage(GetDlgItem(CBHNDL, 105), %EM_GETCHARFORMAT, 1, VARPTR(cf)))
END SELECT
END SELECT
mask& returns 0 no matter what and all other information returns 0 or "". So the CHARFORMAT type must not be getting filled in. Can anyone post an exnample or please tell me what I'm doing wrong.
-------------
Thank you,
Ryan M. Cross
Head Webmaster Nofee Inc. Internet Services
President Likuid Creations Ltd.
CASE %WM_NOTIFY
SELECT CASE CBWPARAM
CASE 105
nh = CBLPARAM
SELECT CASE @nh.code
CASE %EN_SELCHANGE
mask& = SendMessage(GetDlgItem(CBHNDL, 105), %EM_GETCHARFORMAT, 1, VARPTR(cf)))
END SELECT
END SELECT
mask& returns 0 no matter what and all other information returns 0 or "". So the CHARFORMAT type must not be getting filled in. Can anyone post an exnample or please tell me what I'm doing wrong.
-------------
Thank you,
Ryan M. Cross
Head Webmaster Nofee Inc. Internet Services
President Likuid Creations Ltd.
Comment