I want create windows API application and put singleline edit controls on it.
The edit controls should have two arrows at sides to scroll horizontally using mouse. I could not find any edit styles to do this in windows edit controls. Is there any other way to do this, other than creating customized controls?
Thanks in advanse
my code to create edit control as this:
int iStyleEx = WS_EX_CLIENTEDGE;
int iStyle = WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL;
static wchar_t wszBuffer;
HWND hWndEdit = CreateWindowExW( iStyleEx, L"EDIT", wszBuffer, iSstyle,
cpx, cpy, cpWidth, cpHeight, hwndDlg, NULL, hInst, NULL );
As there is no simple way to add arrows to both sides of edit control to scroll horizontally, I think the best way to solve this problem is to create two button controls to left and right of edit control, and handle their WM_LBUTTONDOWN and WM_LBUTTONUP events.
The button controls should paint arrows.