Valid window messages break down into four categories. 0 .. 0x3FF (WM_USER-1): System-defined messages. The meanings of these messages are defined by the operating system and cannot be changed. Do not invent new messages here. Since the meanings are defined by Windows, the operating system understands how to parse the WPARAM and LPARAM paramet...
GetWindowLongPtr(hwnd, GWLP_WNDPROC) [or GetWindowLong(hwnd, GWL_WNDPROC) if you haven't yet made your code 64-bit compatible] is supposed to return the current window procedure. Why do I sometimes get wacko values?
Because sometimes "you can't handle the truth".
If the current window procedure is incompatible with the caller of GetWindowLongPtr,...
(Geek talk resumes on Monday.) The longstanding tradition of Norwegians telling Swedish jokes and vice versa, was recently refueled by a border story. A Norwegian man called Sweden on his mobile phone to tell them they had a forest fire. Not only did the firefighters not know about the blaze, they didn't recognize the name of the place on fire. ...
(It's a holiday in the States today and tomorrow, so I'm not going to talk about geek stuff. That'll resume on Monday.)
If you pay a visit to Deutsche Welle, the German international broadcasting service, you will find a wide array of online German learning materials, such as the daily news in slowly- and clearly-enunciated German (including tra...
The WM_GETDLCODE message lets you influence the behavior of the dialog manager. A previous entry on using WM_GETDLGCODE described the flag which controls whether edit control content is auto-selected when focus changes.
I was going to write a bit about the other flags, but it turns out that Knowledge Base Article 83302 already covers this, so I...
Here's a little script that opens the Run dialog.
You can save it as "Run.js" and double-click it.
The advantage of this approach over various others people have come
up with is that this one is actually
documented.
(And therefore is less likely to break in the next version of the
operating system.)