Introduction | Supported Platforms | Explanation | Downloads | License Agreement | Contact Us
This is an input helper application of Win32 message crackers. This application is useful for Win32 API programming.
It works on Windows XP/2003/Vista/7/8.1/10.
The message crackers connects the Windows message identifiers and the message procedures by preprocessor's magic.
#include <windows.h> // Windows API.
#include <windowsx.h> // for HANDLE_MSG macro
// The message procedure of WM_CREATE
BOOL OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct)
{
return TRUE;
}
...
// Window procedure
LRESULT CALLBACK
WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam)
{
switch (uMsg)
{
HANDLE_MSG(hwnd, WM_CREATE, OnCreate);
HANDLE_MSG(hwnd, WM_COMMAND, OnCommand);
...
default:
return DefWindowProc(hwnd, uMsg, wParam, lParam);
}
}
In this WindowProc function, WM_CREATE message is connected to the OnCreate function by HANDLE_MSG macro.
Such descriptions of HANDLE_MSG macros are the message crackers. The message crackers connects WindowProc and message procedures.
For details of HANDLE_MSG macro, see <windowsx.h> header.
However, it is too tough to write many message procedures by hand. Using this application reduces your troubles.
Filename | File Size | Description |
---|---|---|
msgcrack-2.2-bin.zip | 635 KB (650,474 bytes) | Program (without installer) |
MsgCrack is a freeware of public domain.
Please send e-mail to katayama.hirofumi.mz@gmail.com .
Introduction | Supported Platforms | Explanation | Downloads | License Agreement | Contact Us