Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スライダーに応じてアイテムの高さと幅を変更したいのですが、私が知る限り、CListBoxのようなmeasureitemメソッドはありません。どうすればこれを修正できますか?
ありがとうございました!
CListCtrl のすべての項目は同じサイズでなければなりません。CListCtrl を保持するコンテナーで OnMeasureItem を使用できると思いますが、アイテムごとに呼び出されるのではなく、コントロール全体に対して 1 回だけ呼び出されます。
回避策は、画像リストをCListCtrlに添付することです。行は、画像リストの高さに基づいた高さになります。