MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / SelectComboBoxItemByValue

Function SelectComboBoxItemByValue

decoder/LAVVideo/VideoSettingsProp.cpp:199–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static void SelectComboBoxItemByValue(HWND hwnd, int nIDDlgItem, UINT Data)
200{
201 LRESULT count = SendDlgItemMessage(hwnd, nIDDlgItem, CB_GETCOUNT, 0, 0);
202 for (int i = 0; i < count; i++)
203 {
204 LRESULT ItemData = SendDlgItemMessage(hwnd, nIDDlgItem, CB_GETITEMDATA, i, 0);
205 if (ItemData == Data)
206 {
207 SendDlgItemMessage(hwnd, nIDDlgItem, CB_SETCURSEL, i, 0);
208 break;
209 }
210 }
211}
212
213HRESULT CLAVVideoSettingsProp::OnActivate()
214{

Callers 1

OnActivateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected