15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


palette of COleClientItem

Paul.B.Folbrecht@JCI.Com
Monday, December 30, 1996

     Environment: VC++ 4.1, NT 4.0
     
     Is there a way to get a palette out of a COleClientItem?  I am drawing 
     them, along with several bitmaps, and I want the bitmaps to use the 
     same palette.  The docs to Draw() state that it uses the metafile 
     representation of the object (of course), but don't mention palettes.  
     But, it doesn't appear that any palette is realized during drawing, 
     since OLE objects made from DIBs (bmps) are not drawn in their native 
     colors.
     
     (I'm using an OLE object for a window background.  Typical uses will 
     be bitmaps in several formats, plus Visio and AutoCad schematics.)
     
     -Paul Folbrecht
     Compuware Corp.



rick cameron -- rick_cameron@msn.com
Tuesday, January 07, 1997

I've been trying to do this, too. The Ole documentation describes the member 
function GetColorSet in IViewObject. I've tried using this, but it always 
returns the SCODE OLE_E_BLANK.

- rick

On December 30, 1996 14:29, owner-mfc-l@majordomo.netcom.com on behalf of 
Paul.B.Folbrecht@JCI.Com wrote:
>      Environment: VC++ 4.1, NT 4.0
>      
>      Is there a way to get a palette out of a COleClientItem?  I am drawing 
>      them, along with several bitmaps, and I want the bitmaps to use the 
>      same palette.  The docs to Draw() state that it uses the metafile 
>      representation of the object (of course), but don't mention palettes.  
>      But, it doesn't appear that any palette is realized during drawing, 
>      since OLE objects made from DIBs (bmps) are not drawn in their native 
>      colors.
>      
>      (I'm using an OLE object for a window background.  Typical uses will 
>      be bitmaps in several formats, plus Visio and AutoCad schematics.)
>      
>      -Paul Folbrecht
>      Compuware Corp.
> 





| Вернуться в корень Архива |