diff options
| author | Pietro Gagliardi <[email protected]> | 2014-11-05 13:35:39 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-11-05 13:35:39 -0500 |
| commit | b632fef3b13dc082acbbbd8aaf6898c663da1c0b (patch) | |
| tree | db74e1e02e91e555b50e9ad6efd2eaafafae907f /winapi_windows.h | |
| parent | cd96f8ee2e0a4ae3370a57357f9bcde4e2a8c36f (diff) | |
Implemented TextField.ReadOnly() on Mac OS X. Began standardizing window class name access on Windows.
Diffstat (limited to 'winapi_windows.h')
| -rw-r--r-- | winapi_windows.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winapi_windows.h b/winapi_windows.h index 9642397..db3b49e 100644 --- a/winapi_windows.h +++ b/winapi_windows.h @@ -41,6 +41,13 @@ enum { msgOpenFileDone, }; +// there are a number of places where we need to know what window class an arbitrary handle has +// theoretically we could use the class atom to avoid a _wcsicmp() +// however, raymond chen advises against this - http://blogs.msdn.com/b/oldnewthing/archive/2004/10/11/240744.aspx (and we're not in control of the Tab class, before you say anything) +// MSDN says 256 is the maximum length of a class name; add a few characters just to be safe (because it doesn't say whether this includes the terminating null character) +// TODO localize this to a helper function +#define maxClassName 260 + // uitask_windows.c extern void uimsgloop(void); extern void issue(void *); |
