Click here to Skip to main content
15,904,817 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Transcoding using ffmpeg Pin
gmallax10-May-10 0:37
gmallax10-May-10 0:37 
Questionread data from modem Pin
A_Fa9-May-10 21:50
A_Fa9-May-10 21:50 
AnswerRe: read data from modem Repost Pin
Richard MacCutchan9-May-10 22:02
mveRichard MacCutchan9-May-10 22:02 
QuestionVC 2008 problem Pin
Member 36537519-May-10 21:38
Member 36537519-May-10 21:38 
AnswerRe: VC 2008 problem Pin
Richard MacCutchan9-May-10 22:00
mveRichard MacCutchan9-May-10 22:00 
GeneralRe: VC 2008 problem Pin
Member 365375110-May-10 0:44
Member 365375110-May-10 0:44 
GeneralRe: VC 2008 problem Pin
Richard MacCutchan10-May-10 1:18
mveRichard MacCutchan10-May-10 1:18 
GeneralRe: VC 2008 problem Pin
peterchen10-May-10 2:19
peterchen10-May-10 2:19 
GeneralRe: VC 2008 problem Pin
Tim Craig10-May-10 10:04
Tim Craig10-May-10 10:04 
GeneralRe: VC 2008 problem Pin
Abin10-May-10 15:57
Abin10-May-10 15:57 
Questiondata between forms sdi Pin
hellogany9-May-10 20:05
hellogany9-May-10 20:05 
AnswerRe: data between forms sdi Pin
Cedric Moonen9-May-10 20:21
Cedric Moonen9-May-10 20:21 
AnswerRe: data between forms sdi Pin
KarstenK9-May-10 21:31
mveKarstenK9-May-10 21:31 
QuestionHow to load swf from resources Pin
rahul.kulshreshtha9-May-10 19:49
rahul.kulshreshtha9-May-10 19:49 
AnswerRe: How to load swf from resources Pin
Stuart Dootson9-May-10 21:40
professionalStuart Dootson9-May-10 21:40 
AnswerRe: How to load swf from resources Pin
peterchen10-May-10 2:21
peterchen10-May-10 2:21 
QuestionWindowFromPoint and layered windows Pin
Code-o-mat9-May-10 7:07
Code-o-mat9-May-10 7:07 
Hello folks!

I have a few layered windows which use per-pixel alpha of 32 bit bitmaps to display graphics. I use WindowFromPoint and TrackMouseEvent (which probably uses WindowFromPoint also somewhere along the way of its processing but that's just a guess) to know when the mouse points at these windows. Now, here comes the catch, WindowFromPoint takes the alpha channel of layered windows into acount (also TrackMouseEvent does this when listening for mouse-leave events), so when the given point (e.g: mouse position) is above a transparent pixel of the window then it will ignore the window. This is very good that way 99.9% of the time. However, i would need WindowFromPoint and TrackMouseEvent to handle my layered windows as if they were not layered windows, so they were normal, everyday, non-transparent rectnagular windows. Is this trick possible somehow? I know i could just forget about these methods and try to write my own implementations, enumerating windows, checking Z-orders and so on to try and find the "pointed" window, but it is probably quite a hassle to implement and would probably turn up a lot of "i didn't think of this" cases when it fails.
Thanks in advance for any comments, ideas, answers.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

AnswerRe: WindowFromPoint and layered windows Pin
Randor 9-May-10 9:42
professional Randor 9-May-10 9:42 
GeneralRe: WindowFromPoint and layered windows Pin
Code-o-mat9-May-10 10:21
Code-o-mat9-May-10 10:21 
GeneralRe: WindowFromPoint and layered windows Pin
Randor 9-May-10 11:24
professional Randor 9-May-10 11:24 
GeneralRe: WindowFromPoint and layered windows Pin
Code-o-mat9-May-10 11:36
Code-o-mat9-May-10 11:36 
GeneralRe: WindowFromPoint and layered windows Pin
Randor 9-May-10 12:44
professional Randor 9-May-10 12:44 
GeneralRe: WindowFromPoint and layered windows [modified] Pin
Code-o-mat9-May-10 23:05
Code-o-mat9-May-10 23:05 
QuestionSystem Time Zone Pin
john56329-May-10 6:45
john56329-May-10 6:45 
AnswerRe: System Time Zone Pin
Software_Developer9-May-10 7:46
Software_Developer9-May-10 7:46 

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.