I want to draw, or load an image( PNG format) without making a form, how to do
that?
( I want to make a flying picture on desktop- round shape)
Thank you very much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can get a device context for the "whole screen" and draw
directly to it, but that is probably not what you want, since your process
does not 'own' that device context and will not get notification when portions
are invalidated and need to be painted.
The solution is to create a window with no border and transparent properties.
The windows will of course be rectangular, but since it will also be
invisible, its shape will appear ot be whatever shape you choose to draw on
it.
You can make a window transparent by setting its colour and the 'transparent
key' to the same value.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Clifford, it's ~8 years, and I still remember how helful you were. I always want to say "Thank you" to you, but I can't find any of your blog or email (sourceforge does not allow me to pm you, also). I noticed that you have no activities on this forum from 2010, so not sure if this message can come to you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to draw, or load an image( PNG format) without making a form, how to do
that?
( I want to make a flying picture on desktop- round shape)
Thank you very much!
You can get a device context for the "whole screen" and draw
directly to it, but that is probably not what you want, since your process
does not 'own' that device context and will not get notification when portions
are invalidated and need to be painted.
The solution is to create a window with no border and transparent properties.
The windows will of course be rectangular, but since it will also be
invisible, its shape will appear ot be whatever shape you choose to draw on
it.
You can make a window transparent by setting its colour and the 'transparent
key' to the same value.
Clifford
Dear Clifford, it's ~8 years, and I still remember how helful you were. I always want to say "Thank you" to you, but I can't find any of your blog or email (sourceforge does not allow me to pm you, also). I noticed that you have no activities on this forum from 2010, so not sure if this message can come to you.