Hello,
I have a static control inside res file.
the static control has a WS_VSCROLL style but it doesnt move.
my static control holds text larger than the static control height.
how can I do a vertical scroll on the static control.
thanks
I have a static control inside res file.
the static control has a WS_VSCROLL style but it doesnt move.
my static control holds text larger than the static control height.
how can I do a vertical scroll on the static control.
thanks
Try this one.
Use it after a new text is displayed/added.
invoke SendDlgItemMessage,hwndDlg,EditID,EM_GETLINECOUNT,NULL,NULL
invoke SendDlgItemMessage,hwndDlg,EditID,EM_LINESCROLL,NULL,eax
First get the maximum lines, which are in the EditBox ...
and then send the EM_LINESCROLL Message (see Programmer's Reference)
Use it after a new text is displayed/added.
invoke SendDlgItemMessage,hwndDlg,EditID,EM_GETLINECOUNT,NULL,NULL
invoke SendDlgItemMessage,hwndDlg,EditID,EM_LINESCROLL,NULL,eax
First get the maximum lines, which are in the EditBox ...
and then send the EM_LINESCROLL Message (see Programmer's Reference)