Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-18274

UtilMan : OSK et Magnify are mixed at initialization (language dependant) due to incorrect use of LBS_STANDARD flag in .rc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • 0.4.15
    • Applications
    • None

    Description

      Using : reactos-bootcd-0.4.15-dev-4914-g2220e56-x86-gcc-lin-dbg 

      Launch UtilMan

      Symptom : In the list Magnifier and OSK are mixed upon initialization. Start/Stop on both lines corrects the list content. This also unduce some toggling on selection when clicking on list items

      Cause is the use of LBS_STANDARD : https://learn.microsoft.com/en-us/windows/win32/controls/list-box-styles

      Sorts strings in the list box alphabetically. The parent window receives a notification code whenever the user clicks a list box item, double-clicks an item, or or cancels the selection. The list box has a vertical scroll bar, and it has borders on all sides. This style combines the LBS_NOTIFY, LBS_SORT, WS_VSCROLL, and WS_BORDER styles. 

      Fix is to replace

      LISTBOX IDC_LISTBOX, 4, 4, 273, 56, LBS_STANDARD | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER

      by

      LISTBOX IDC_LISTBOX, 4, 4, 273, 56, LBS_NOTIFY | WS_VSCROLL | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER

      Attachments

        Issue Links

          Activity

            People

              zecarlos1957 zecarlos1957
              KRosUser KRosUser
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: