Forum Discussion

MulgraveTester's avatar
MulgraveTester
Frequent Contributor
9 years ago

Discrepency between wndStyles value and sum of wndStyles components

I have a test to check if a field object is read-only. This works for all 1260 fields except one in my application. It reports that a SysListView32 is read only when it is not. The field is possibly ...
  • HKosova's avatar
    9 years ago

    Hi MulgraveTester,

     

    Your list view appears to have the LVS_ALIGNLEFT style, which is also 0x800 = 2048. List views don't seem to have the "read-only" style. ES_READONLY applies only to edit controls, but not to list views.

     

    As for how Object Spy parses the WndStyles value - I guess it shows only the common WS_ constants and does not show control-specific constants, because in general there's no way to tell if 0x800 means ES_READONLY, LVS_ALIGNLEFT, CBS_DISABLENOSCROLL, or something else. Feel free to submit an enhancement request though.