// JP opened flex table

Click to See Complete Forum and Search --> : i create a "edit" in a dialog, but why its srcollbar is gray,not active.


aneird
January 23rd, 2008, 12:25 AM
hwndEdit = CreateWindow (TEXT ("edit"), NULL,

WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |

WS_BORDER | ES_LEFT | ES_MULTILINE |

ES_AUTOHSCROLL | ES_AUTOVSCROLL,

0, 0, 0, 0, hwnd, (HMENU) ID_EDIT,

((LPCREATESTRUCT) lParam) -> hInstance, NULL) ;

how to activate the srcollbar?

srelu
January 23rd, 2008, 04:52 AM
See SetScrollInfo and SCROLLINFO.

aneird
January 23rd, 2008, 08:17 PM
now i use "SetScrollInfo" and "EnableScrollBar" when receive WM_INITDIALOG, and the srcollbar can be enabled, but why the srcollbar becames disabled,when i change the size of dialog?

//JP added flex table