{"id":42183,"date":"2003-10-14T12:14:00","date_gmt":"2003-10-14T12:14:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2003\/10\/14\/answer-to-previous-exercise\/"},"modified":"2020-04-02T19:21:10","modified_gmt":"2020-04-03T02:21:10","slug":"answer-to-previous-exercise","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20031014-00\/?p=42183","title":{"rendered":"Answer to previous exercise about the mythical WM_MOUSEENTER message"},"content":{"rendered":"<p><a href=\"http:\/\/blogs.gotdotnet.com\/raymondc\/PermaLink.aspx\/9182ea55-ceb8-44d0-bde3-97bd6b278b47\">If the program starts with the mouse already in the client area without moving, why do you get a beep?<\/a><\/p>\n<p>Because of the <a href=\"http:\/\/blogs.gotdotnet.com\/raymondc\/PermaLink.aspx\/d8afd9b1-06ec-4046-939d-ddc4d7662ec2\">spurious WM_MOUSEMOVE<\/a> message that is generated when a window is created. In this case, the spurious message is a good thing, since it lets us do our mouse work at window creation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If the program starts with the mouse already in the client area without moving, why do you get a beep?<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-42183","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>If the program starts with the mouse already in the client area without moving, why do you get a beep?<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/42183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=42183"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/42183\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=42183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=42183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=42183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}