Click here to Skip to main content
15,895,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: System Time Zone Pin
Randor 9-May-10 9:21
professional Randor 9-May-10 9:21 
QuestionAfx.h / Win32 Pin
Fareed Rizkalla8-May-10 11:34
Fareed Rizkalla8-May-10 11:34 
AnswerRe: Afx.h / Win32 Pin
Garth J Lancaster8-May-10 13:25
professionalGarth J Lancaster8-May-10 13:25 
GeneralRe: Afx.h / Win32 Pin
Fareed Rizkalla8-May-10 16:15
Fareed Rizkalla8-May-10 16:15 
AnswerRe: Afx.h / Win32 Pin
Stephen Hewitt8-May-10 20:59
Stephen Hewitt8-May-10 20:59 
QuestionLocalization for languages using XML Pin
punyah20108-May-10 9:02
punyah20108-May-10 9:02 
AnswerRe: Localization for languages using XML Pin
CPallini8-May-10 9:53
mveCPallini8-May-10 9:53 
GeneralRe: Localization for languages using XML Pin
punyah20108-May-10 10:34
punyah20108-May-10 10:34 
GeneralRe: Localization for languages using XML Pin
CPallini8-May-10 11:17
mveCPallini8-May-10 11:17 

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.