Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhats the main use of MapDialogRect function Pin
KASR130-Dec-08 0:34
KASR130-Dec-08 0:34 
AnswerRe: Whats the main use of MapDialogRect function Pin
pallaka30-Dec-08 1:24
pallaka30-Dec-08 1:24 
QuestionSOS! Please help me to settle a MSChart Control problem Pin
fbt04530-Dec-08 0:28
fbt04530-Dec-08 0:28 
QuestionSHChangeNotify problem Pin
revanth198530-Dec-08 0:20
revanth198530-Dec-08 0:20 
QuestionRe: SHChangeNotify problem Pin
David Crow30-Dec-08 3:56
David Crow30-Dec-08 3:56 
AnswerRe: SHChangeNotify problem Pin
revanth198530-Dec-08 15:52
revanth198530-Dec-08 15:52 
QuestionBUMP Pin
karhong29-Dec-08 22:54
karhong29-Dec-08 22:54 
QuestionClick-through color-key transparency Pin
Ohad Maishar29-Dec-08 22:33
Ohad Maishar29-Dec-08 22:33 
I'm trying to to make PART of a window transparent AND click-through.

I'm using the following code to show/hide the form (actually making it fully transparent/opaque):

SetWindowLongPtr(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_LAYERED);

//Hide the whole form
SetLayeredWindowAttributes(hWnd, COLOR_KEY, 0, LWA_COLORKEY | LWA_ALPHA);
//Show the form
SetLayeredWindowAttributes(hWnd, COLOR_KEY, 255, LWA_COLORKEY | LWA_ALPHA);

This works fine, However:
I also have part of the window colored in COLOR_KEY. This code makes this part transparent but not click-through.

My question is: how do I make this part of the window (again, colored in COLOR_KEY) transparent AND click-through?
Note that I don't want the whole window to become click-through, but only this part.

Thanks
AnswerRe: Click-through color-key transparency Pin
Malli_S29-Dec-08 23:52
Malli_S29-Dec-08 23:52 
GeneralRe: Click-through color-key transparency Pin
Ohad Maishar30-Dec-08 0:11
Ohad Maishar30-Dec-08 0:11 
GeneralRe: Click-through color-key transparency Pin
Malli_S30-Dec-08 0:20
Malli_S30-Dec-08 0:20 
GeneralRe: Click-through color-key transparency Pin
Ohad Maishar30-Dec-08 0:40
Ohad Maishar30-Dec-08 0:40 
QuestionHtmlHelp Problem Pin
Ali Tavakol29-Dec-08 21:34
Ali Tavakol29-Dec-08 21:34 
AnswerRe: HtmlHelp Problem Pin
sashoalm29-Dec-08 22:30
sashoalm29-Dec-08 22:30 
GeneralRe: HtmlHelp Problem Pin
Ali Tavakol30-Dec-08 0:38
Ali Tavakol30-Dec-08 0:38 
GeneralRe: HtmlHelp Problem Pin
sashoalm3-Jan-09 6:17
sashoalm3-Jan-09 6:17 
GeneralRe: HtmlHelp Problem Pin
Theo Buys7-Jan-09 2:46
Theo Buys7-Jan-09 2:46 
GeneralRe: HtmlHelp Problem Pin
Theo Buys7-Jan-09 3:28
Theo Buys7-Jan-09 3:28 
GeneralRe: HtmlHelp Problem Pin
sashoalm8-Jan-09 1:32
sashoalm8-Jan-09 1:32 
GeneralRe: HtmlHelp Problem Pin
Theo Buys12-Jan-09 0:14
Theo Buys12-Jan-09 0:14 
QuestionHow can handle buttons of Preview window? Pin
Le@rner29-Dec-08 21:18
Le@rner29-Dec-08 21:18 
AnswerRe: How can handle buttons of Preview window? Pin
pallaka29-Dec-08 22:18
pallaka29-Dec-08 22:18 
GeneralRe: How can handle buttons of Preview window? Pin
Le@rner29-Dec-08 22:40
Le@rner29-Dec-08 22:40 
GeneralRe: How can handle buttons of Preview window? Pin
pallaka30-Dec-08 1:16
pallaka30-Dec-08 1:16 
GeneralRe: How can handle buttons of Preview window? Pin
Le@rner30-Dec-08 1:26
Le@rner30-Dec-08 1:26 

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.