summaryrefslogtreecommitdiff
path: root/winapi_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-11-05 14:12:57 -0500
committerPietro Gagliardi <[email protected]>2014-11-05 14:12:57 -0500
commit745fdc9dc6f7f0e59ba2e372327d59cf899929ca (patch)
treee0dbdaffe93e3555b394f7df80c4bb800cc4428c /winapi_windows.h
parentb632fef3b13dc082acbbbd8aaf6898c663da1c0b (diff)
More Windows window class logic simplification. This will be needed for read-only TextFields, next.
Diffstat (limited to 'winapi_windows.h')
-rw-r--r--winapi_windows.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/winapi_windows.h b/winapi_windows.h
index db3b49e..f228d2e 100644
--- a/winapi_windows.h
+++ b/winapi_windows.h
@@ -23,6 +23,7 @@
#include <windowsx.h>
#include <vsstyle.h>
#include <vssym32.h>
+#include <stdarg.h>
// global messages unique to everything
enum {
@@ -41,13 +42,6 @@ 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 *);
@@ -112,6 +106,7 @@ extern void getWindowText(HWND, WPARAM, LPWSTR);
extern void setWindowText(HWND, LPWSTR);
extern void updateWindow(HWND);
extern void *getWindowData(HWND, UINT, WPARAM, LPARAM, LRESULT *);
+extern int windowClassOf(HWND, ...);
extern BOOL sharedWndProc(HWND, UINT, WPARAM, LPARAM, LRESULT *);
extern void paintControlBackground(HWND, HDC);