I agree with Phreak: as I wrote in the original post, there is no way I will 
including TWICE the same .BMP in my resources (maybe I'm not so radical 
anymore).

I now expect that the only remaining solution is to do the "conversion" from 
icon to bitmap programmatically. That I was able to do (find the application 
icon's handler, get a pointer to a bitmap from that handler).

I then used WinDrawBitmap to display the bitmap. What I didn't like about that 
solution is that the position of the bitmap is specified in the code. I felt it 
would be more elegant to be at least able to specify its position in the 
resource file (well, I would have hoped to do EVERYTHING in the resource file), 
hence my interest in Miro's suggestion to use CtlSetGraphics() on a graphical 
button.

I guess I am confused by my newbiness: I would have expected CtlSetGraphics() 
to take a bitmap pointer, instead of a resource ID.

I am spending an inordinate amount of time on that, but I feel I am learning 
something!

Thanks for your answers.
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to