Click here to Skip to main content
15,903,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get the image contents from the clipboard and write into a BMP file using MFC Pin
Durga.Varun4-Dec-08 20:18
Durga.Varun4-Dec-08 20:18 
AnswerRe: How to get the image contents from the clipboard and write into a BMP file using MFC Pin
enhzflep4-Dec-08 20:22
enhzflep4-Dec-08 20:22 
AnswerRe: How to get the image contents from the clipboard and write into a BMP file using MFC Pin
Rajesh R Subramanian4-Dec-08 20:26
professionalRajesh R Subramanian4-Dec-08 20:26 
GeneralRe: How to get the image contents from the clipboard and write into a BMP file using MFC Pin
Durga.Varun4-Dec-08 21:17
Durga.Varun4-Dec-08 21:17 
AnswerRe: How to get the image contents from the clipboard and write into a BMP file using MFC Pin
Hamid_RT4-Dec-08 20:50
Hamid_RT4-Dec-08 20:50 
GeneralRe: How to get the image contents from the clipboard and write into a BMP file using MFC Pin
Durga.Varun4-Dec-08 21:18
Durga.Varun4-Dec-08 21:18 
QuestionTransparent Window using SetLayeredWindowAttributes Pin
Aabid4-Dec-08 19:48
Aabid4-Dec-08 19:48 
AnswerRe: Transparent Window using SetLayeredWindowAttributes Pin
enhzflep4-Dec-08 20:02
enhzflep4-Dec-08 20:02 
You can use an image with a solid colour applied in the parts that should be transparent. You then display the image using alpha keying, which renders the image except pixels that are this colour.

Here is code that displays an an image with 75% opacity, except for pixels that are RGB(255,0,0) - which are not displayed at all.
SetLayeredWindowAttributes(hwnd, RGB(255,0,0), (75*255)/100, ULW_COLORKEY|LWA_ALPHA);

If you remove the |LWA_ALPHA part, you get full opacity on all pixels except the red ones, which are not shown at all.
GeneralRe: Transparent Window using SetLayeredWindowAttributes Pin
Aabid4-Dec-08 22:08
Aabid4-Dec-08 22:08 
GeneralRe: Transparent Window using SetLayeredWindowAttributes Pin
enhzflep4-Dec-08 22:26
enhzflep4-Dec-08 22:26 
GeneralRe: Transparent Window using SetLayeredWindowAttributes Pin
Aabid4-Dec-08 22:39
Aabid4-Dec-08 22:39 
GeneralRe: Transparent Window using SetLayeredWindowAttributes Pin
Code-o-mat4-Dec-08 22:48
Code-o-mat4-Dec-08 22:48 
GeneralRe: Transparent Window using SetLayeredWindowAttributes Pin
enhzflep5-Dec-08 0:47
enhzflep5-Dec-08 0:47 
QuestionFormat retuening a negative value Pin
VCProgrammer4-Dec-08 19:43
VCProgrammer4-Dec-08 19:43 
QuestionRe: Format retuening a negative value Pin
Rajesh R Subramanian4-Dec-08 20:05
professionalRajesh R Subramanian4-Dec-08 20:05 
AnswerRe: Format retuening a negative value Pin
VCProgrammer4-Dec-08 20:07
VCProgrammer4-Dec-08 20:07 
GeneralRe: Format retuening a negative value Pin
SnaKeBeD4-Dec-08 20:12
SnaKeBeD4-Dec-08 20:12 
AnswerRe: Format retuening a negative value Pin
SnaKeBeD4-Dec-08 20:10
SnaKeBeD4-Dec-08 20:10 
GeneralRe: Format retuening a negative value Pin
Rajesh R Subramanian4-Dec-08 20:24
professionalRajesh R Subramanian4-Dec-08 20:24 
AnswerRe: Format retuening a negative value Pin
YoungJin Shin4-Dec-08 20:10
YoungJin Shin4-Dec-08 20:10 
AnswerRe: Format retuening a negative value Pin
Malli_S4-Dec-08 20:20
Malli_S4-Dec-08 20:20 
AnswerRe: Format retuening a negative value Pin
CPallini4-Dec-08 22:06
mveCPallini4-Dec-08 22:06 
QuestionProblem using Farpoint in vc++ Pin
SnaKeBeD4-Dec-08 19:38
SnaKeBeD4-Dec-08 19:38 
QuestionListBox data add Pin
hellogany4-Dec-08 19:31
hellogany4-Dec-08 19:31 
AnswerRe: ListBox data add Pin
Aabid4-Dec-08 20:29
Aabid4-Dec-08 20:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.