29 #include "../../idlib/precompiled.h"
32 #define MASKEDIT_MAXINVALID 1024
49 WNDPROC wndproc = edit->
mProc;
54 if ( strchr ( edit->
mInvalid, wParam ) )
63 SetWindowLong ( hWnd, GWL_WNDPROC, (
LONG)wndproc );
67 return CallWindowProc ( wndproc, hWnd, msg, wParam, lParam );
80 edit->
mProc = (WNDPROC)GetWindowLong ( hWnd, GWL_WNDPROC );
82 SetWindowLong ( hWnd, GWL_USERDATA, (
LONG)edit );
95 static const char invalid[] =
"`~!@#$%^&*()_+|=\\qwertyuiop[]asdfghjkl;'zxcvbnm,/QWERTYUIOP{}ASDFGHJKL:ZXCVBNM<>";
CONST PIXELFORMATDESCRIPTOR UINT
LRESULT CALLBACK MaskEdit_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
#define MASKEDIT_MAXINVALID
void NumberEdit_Attach(HWND hWnd)
void MaskEdit_Attach(HWND hWnd, const char *invalid)
char mInvalid[MASKEDIT_MAXINVALID]