Jack
2010-01-10 11:34:15 UTC
Hi guys,
I am trying to use the SetMapMode(...) API to
place the origin at the lower-left of the client of the window.
So that positive x to the right and +ve y up
I've tried MM_TWIPS, MM_LOMETRIC
and MM_HIMETRIC etc, just to name a few
But the bitmap I rendered disappeared.
I learned in MSDN that the logical unit in these calls
range from 0.001 inch to 0.01 mill etc respectively, but
I am not sure if this is the root cause of the problem (disappearance of the
image)..
Do I need to call one of the functions namely
SetWindowExt or something? What is the correct
coding in this case? Could anyone please show me some
code snippets? It will be greatly appreciated!!
Thanks
Jack
I am trying to use the SetMapMode(...) API to
place the origin at the lower-left of the client of the window.
So that positive x to the right and +ve y up
I've tried MM_TWIPS, MM_LOMETRIC
and MM_HIMETRIC etc, just to name a few
But the bitmap I rendered disappeared.
I learned in MSDN that the logical unit in these calls
range from 0.001 inch to 0.01 mill etc respectively, but
I am not sure if this is the root cause of the problem (disappearance of the
image)..
Do I need to call one of the functions namely
SetWindowExt or something? What is the correct
coding in this case? Could anyone please show me some
code snippets? It will be greatly appreciated!!
Thanks
Jack