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

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


OLE ServerItem's OnDraw()

Di Luo -- photosoft@monmouth.com
Friday, October 11, 1996

Environment: MSVC 4.2, Windows 95

I try to draw an image in ServerItem's OnDraw().
Unfortunately my third party tool only draws image under MM_TEXT
mapping mode. Is there any way to draw image under this  restriction?

Thanks

Di Luo



Jerry Coffin -- jcoffin@taeus.com
Monday, October 14, 1996

At 12:33 PM 10/11/96 -0700, you wrote:
>Environment: MSVC 4.2, Windows 95
>
>I try to draw an image in ServerItem's OnDraw().
>Unfortunately my third party tool only draws image under MM_TEXT
>mapping mode. Is there any way to draw image under this  restriction?

Yes, the MM_TEXT mapping mode doesn't restrict you to drawing text - it
merely indicates that the coordinates go in the same directions as text:
from right to left and top to bottom.  MM_TEXT is the default mapping mode,
and I'd guess that roughly 90% of graphics in Windows is done in MM_TEXT
mapping mode.





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