特殊窗口

以前我们有时候会创建一个隐藏的窗口, 然后让他们和其他窗口进行通信. 确实有这种需求啊. 今天在看某软件的时候发现一个办法. 当然这个办法在MSDN里面
就有的. 只是以前没有用过. 也没听人说起过.

CreateWindowExW(0, L”WndClass”, L”WndName”, 0, 0, 0, 0, 0, HWND_MESSAGE, 0, 0, 0);

父窗体指定为HWND_MESSAGE常量,它可以收发消息,没z-order,,不可遍历且不无能接收到广播消息仅做简单的消息分发.我们可以在创建窗体时指定其父窗体为HWND_MESSAGE常量也可以将现有窗体通过SetParent将父窗体设为HWND_MESSAGE常量从而达到变成消息窗体的目的.

结论: 消息窗体窗体是不可见,在SPY++窗体中可以找到, 但同步不到也就是说没有被遍历到.发出广播消息(RegisterWindowMessage注册的消息)后没有收到.WM_COPYDATA 消息必须由SendMessage 函数发送(同步方式,系统为了确保数据有效)

以后创建背后通信的窗口就使用这个了!

网友评论:

  1. click here 说:

    There is noticeably a bundle to realize about this. I consider you made various good points in features also.

  2. Orthomolecular Products 说:

    What as up, I read your blogs like every week. Your humoristic style is witty, keep up the good work!

  3. cheap essay 说:

    pretty handy material, overall I consider this is well worth a bookmark, thanks

  4. to learn more 说:

    There is apparently a bundle to identify about this. I suppose you made some good points in features also.

  5. site 说:

    Im thankful for the blog article.Thanks Again. Keep writing.

  6. Ep coc ly tam 说:

    Super-Duper site! I am loving it!! Will come back again. I am taking your feeds also.

  7. mobile game reviews 说:

    You have observed very interesting points! ps decent internet site.

  8. Evropski 说:

    This excellent website truly has all the info I wanted about this subject and didn at know who to ask.

  9. Manifestation Magic Review 说:

    Wow! This can be one particular of the most useful blogs We have ever arrive across on this subject. Actually Excellent. I am also a specialist in this topic so I can understand your hard work.

  10. Alice 说:

    Thanks so much for the blog post.Much thanks again. Fantastic.

  11. https://tonusjournal.com/brain-health/top-5-best-brain-supplements/ 说:

    The color of one as blog is fairly excellent. i would like to possess these colors too on my blog.* a.* a

  12. klm discount code 说:

    Your style is so unique compared to other people I have read stuff from. Many thanks for posting when you have the opportunity, Guess I all just bookmark this site.

  13. ebay voucher 说:

    Keep up the wonderful piece of work, I read few blog posts on this web site and I believe that your site is real interesting and has got bands of wonderful information.

  14. کلینیک دندانپزشکی مدرن 说:

    Pretty! This was an incredibly wonderful post. Thank you for supplying these details.

  15. to learn more 说:

    I’а†ve read a few good stuff here. Definitely worth bookmarking for revisiting. I wonder how so much attempt you put to make the sort of great informative website.

发表评论

发表评论前,请选对水果: 苹果