void CRListBox::SetSelectColor(unsigned long propVal) { SetProperty(0x3, VT_I4, propVal); }
void CRListBox::SetDrawBackgGound(BOOL propVal) { SetProperty(0x1e, VT_BOOL, propVal); }
void CRListBox::SetForeColor(OLE_COLOR propVal) { SetProperty(DISPID_FORECOLOR, VT_I4, propVal); }
void CRListBox::SetToggleResizableColumns(BOOL propVal) { SetProperty(0x1a, VT_BOOL, propVal); }
void CRListBox::SetShadowSelectColour(unsigned long propVal) { SetProperty(0x1c, VT_I4, propVal); }
void CRListBox::SetBorder(BOOL propVal) { SetProperty(0x16, VT_BOOL, propVal); }
void CRListBox::SetHorzSeperation(long propVal) { SetProperty(0x18, VT_I4, propVal); }
void CRListBox::SetLockColor(unsigned long propVal) { SetProperty(0xa, VT_I4, propVal); }
void CRListBox::SetDragAndDrop(BOOL propVal) { SetProperty(0xb, VT_BOOL, propVal); }
void CRListBox::SetLockLeftColumn(BOOL propVal) { SetProperty(0x8, VT_BOOL, propVal); }
void CRListBox::SetLockTopRow(BOOL propVal) { SetProperty(0x9, VT_BOOL, propVal); }
void CRListBox::SetDarkBackColor(unsigned long propVal) { SetProperty(0x7, VT_I4, propVal); }
void CRListBox::SetDarkStripeColor(unsigned long propVal) { SetProperty(0x6, VT_I4, propVal); }
void CRListBox::SetLineColor(unsigned long propVal) { SetProperty(0x5, VT_I4, propVal); }
void CRListBox::SetHilightRow(long propVal) { SetProperty(0x14, VT_I4, propVal); }
void CRListBox::SetBlackboard(BOOL propVal) { SetProperty(0xd, VT_BOOL, propVal); }
void CRListBox::SetHilightCol(long propVal) { SetProperty(0x15, VT_I4, propVal); }
void CRListBox::SetFontNum2(long propVal) { SetProperty(0xe, VT_I4, propVal); }
void CRListBox::SetCentred(BOOL propVal) { SetProperty(0x17, VT_BOOL, propVal); }
void CRListBox::SetLines2(BOOL propVal) { SetProperty(0xf, VT_BOOL, propVal); }
void CRListBox::SetVertSeperation(long propVal) { SetProperty(0x19, VT_I4, propVal); }
void CRListBox::SetHeaderColor(unsigned long propVal) { SetProperty(0x10, VT_I4, propVal); }
void CRListBox::SetScrlBarOffset(short propVal) { SetProperty(0x1b, VT_I2, propVal); }
void CRListBox::SetSelectWholeRows(BOOL propVal) { SetProperty(0x11, VT_BOOL, propVal); }
void CRListBox::SetShadowLineColor(unsigned long propVal) { SetProperty(0x1d, VT_I4, propVal); }
void CRListBox::SetFontPtr(long propVal) { SetProperty(0x12, VT_I4, propVal); }
void CRListBox::SetIsStripey(BOOL propVal) { SetProperty(0x1, VT_BOOL, propVal); }
void CRListBox::SetParentPointer(long propVal) { SetProperty(0x13, VT_I4, propVal); }
HRESULT CDSMSplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) { CheckPointer(pAsyncReader, E_POINTER); HRESULT hr = E_FAIL; m_pFile.Free(); m_pFile.Attach(DNew CDSMSplitterFile(pAsyncReader, hr, *this, *this)); if (!m_pFile) { return E_OUTOFMEMORY; } if (FAILED(hr)) { m_pFile.Free(); return hr; } m_rtNewStart = m_rtCurrent = 0; m_rtNewStop = m_rtStop = m_rtDuration = m_pFile->m_rtDuration; CAtlArray<BYTE> ids; POSITION pos = m_pFile->m_mts.GetStartPosition(); while (pos) { BYTE id; CMediaType mt; m_pFile->m_mts.GetNextAssoc(pos, id, mt); ids.Add(id); } qsort(ids.GetData(), ids.GetCount(), sizeof(BYTE), compare_id); for (size_t i = 0; i < ids.GetCount(); i++) { BYTE id = ids[i]; CMediaType& mt = m_pFile->m_mts[id]; CStringW name, lang; name.Format(L"Output %02d", id); CAtlArray<CMediaType> mts; mts.Add(mt); CAutoPtr<CBaseSplitterOutputPin> pPinOut(DNew CBaseSplitterOutputPin(mts, name, this, this, &hr)); name.Empty(); pos = m_pFile->m_sim[id].GetStartPosition(); while (pos) { CStringA key; CStringW value; m_pFile->m_sim[id].GetNextAssoc(pos, key, value); pPinOut->SetProperty(CStringW(key), value); if (key == "NAME") { name = value; } if (key == "LANG") if ((lang = ISO6392ToLanguage(CStringA(CString(value)))).IsEmpty()) { lang = value; } } if (!name.IsEmpty() || !lang.IsEmpty()) { if (!name.IsEmpty()) { if (!lang.IsEmpty()) { name += L" (" + lang + L")"; } } else if (!lang.IsEmpty()) { name = lang; } pPinOut->SetName(name); } EXECUTE_ASSERT(SUCCEEDED(AddOutputPin(id, pPinOut))); } pos = m_pFile->m_fim.GetStartPosition(); while (pos) { CStringA key; CStringW value; m_pFile->m_fim.GetNextAssoc(pos, key, value); SetProperty(CStringW(key), value); } for (size_t i = 0; i < m_resources.GetCount(); i++) { const CDSMResource& r = m_resources[i]; if (r.mime == "application/x-truetype-font" || r.mime == "application/x-font-ttf" || r.mime == "application/vnd.ms-opentype") { //m_fontinst.InstallFont(r.data); m_fontinst.InstallFontMemory(r.data.GetData(), r.data.GetCount()); } } return m_pOutputs.GetCount() > 0 ? S_OK : E_FAIL; }
void CRListBox::SetBackColor(OLE_COLOR propVal) { SetProperty(DISPID_BACKCOLOR, VT_I4, propVal); }