c++ - WinApi : Add style to combo box -


I'm trying to add CBS_OWNERDRAWFIXED style to an existing combo box, my code does not work and I know Why is it I guess maybe the old style of expression? The added style is not valid, but I can not understand why.

  Acdbluenac Acdbludi = Bnaaawaindo (L "combo box", "L", Dblues_acsieldi | WS_VISIBLE | CBS_DROPDOWNLIST, 200, 200, 200, 200, Parenthandle (Acmiu) 1, GetModuleHandle (NULL) , NULL); Auto combo box style = GetWindowLongPtr (hwnd, GWL_STYLE); ComboBoxStyle = comboBoxStyle | CBS_OWNERDRAWFIXED; Set window longprint (hwd, gwljeeline, combo boxstyle);  

The output is just regular combobox without any changes.

This special style can only be specified at creation time. It states that when it says:

CBS_OWNERDRAWFIXED

Specifies that the owner of the list box is responsible for portraying his content. And the item has the same height in the list box combo box has been created and the visual aspect of the combo box has changed when the combo box has been created and a WM_DRAWITEM message owner window receives the WM_MEASUREITEM message.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -