Skip to content

Instantly share code, notes, and snippets.

@toptensoftware
Created November 12, 2016 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toptensoftware/439dc44c6b16b6c4ce16f50f0409227f to your computer and use it in GitHub Desktop.
Save toptensoftware/439dc44c6b16b6c4ce16f50f0409227f to your computer and use it in GitHub Desktop.
void Load()
{
// Standard messages
Add(0x0000, new unused()); // WM_NULL
Add(0x0001, new WM_NC_OR_CREATE(false)); // WM_CREATE
Add(0x0002, new WM_DESTROY()); // WM_DESTROY
Add(0x0003, new copy()); // WM_MOVE
Add(0x0005, new copy()); // WM_SIZE
Add(0x0006, new WM_ACTIVATE()); // WM_ACTIVATE
// etc...
// Edit
Add(WndClassKind.Edit, Win32.EM_SETSEL, Win16.EM_SETSEL, new cracked_lparam16());
Add(WndClassKind.Edit, Win32.EM_SETLIMITTEXT, Win16.EM_LIMITTEXT, new copy());
// etc...
// Listbox
Add(WndClassKind.Listbox, Win32.LB_ADDSTRING, Win16.LB_ADDSTRING, new ClassListBox.LB_ADDSTRING());
Add(WndClassKind.Listbox, Win32.LB_INSERTSTRING, Win16.LB_INSERTSTRING, new ClassListBox.LB_ADDSTRING());
// etc...
// Combobox
// Scrollbar
// Button
// Dialog
// etc...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment