I am trying to make a program that has 3 scrollbars. (Red, Green, and Blue)
The scrollbars show up but I cannot move the thumb. Here is the code for one of the scrollbars.
If you are wondering what the edit box is for.. I was trying to have an UpDown box to be in sync with the scrollbar but it seems that those are outdated.(?)Code:/* Create Controls for Red */ uiRedLabel = CreateWindowEx(0, "STATIC", "Red:", WS_CHILD | WS_VISIBLE, 15, 20, 400, 20, hwnd, (HMENU)IDC_RED_LABEL, GetModuleHandle(NULL), NULL); uiRedScroll = CreateWindowEx(0, "SCROLLBAR", NULL, WS_CHILD | SBS_HORZ | WS_VISIBLE, 65, 20, 250, 18, hwnd, (HMENU)IDC_RED_SCROLL, GetModuleHandle(NULL), NULL); uiRedEdit = CreateWindowEx(0, "EDIT", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER, 330, 20, 30, 18, hwnd, (HMENU)IDC_RED_EDIT, GetModuleHandle(NULL), NULL); redScrollInfo.cbSize = sizeof(SCROLLINFO); redScrollInfo.nMin = 0; redScrollInfo.nMax = 255; redScrollInfo.nPos = 255; redScrollInfo.fMask = SIF_POS | SIF_RANGE; SetScrollInfo(uiRedScroll, SB_CTL, &redScrollInfo, FALSE); SendDlgItemMessage(hwnd, IDC_RED_LABEL, WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), MAKELPARAM(TRUE, 0)); SendDlgItemMessage(hwnd, IDC_RED_EDIT, WM_SETFONT, (WPARAM)GetStockObject(DEFAULT_GUI_FONT), MAKELPARAM(TRUE, 0));



LinkBack URL
About LinkBacks


