*g* - that stuff is dangerous; after i wrote this code, i asked Palm if they would allow us to create read-only windows (ie: not on heap), or, at least let us move stuff around after we have created them.. oh well :)
I'm practically positive that if you're using the high-density-capable version of the window manager, you can indeed pass a read-only bitmap to WinCreateBitmapWindow.
Changing to do that, instead of tweaking the structs, would significantly improve your chances of running on future OS releases.
Watch out, though, that you never try drawing into a read-only bitmap: the blitter will crash since it doesn't undo the memory protection.
-David Fedor PalmSource, Inc.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
