1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#pragma once
#include "alf.h"
#include <windows.h>
#include <commctrl.h>
#include <windowsx.h>
#include <stdio.h>
#include <stddef.h>
#ifdef _MSC_VER
// MSVC6 for scoping hack
# define for if(0){}else for
#endif
#include "alflist.h"
#include "alfcompat.h"
#include "alflayout.h"
extern TCHAR _alf_controlClass[];
void
ALF_RegisterToplevelClass(void);
void
ALF_UnregisterToplevelClass(void);
void
ALF_RegisterControlClass(void);
HWND
ALF_CreatePanelWindow(HWND parent, WORD id);
// TODO: think about making it public
BOOL
ALF_ShouldMessageBubble(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
// TODO: refine custom control API, make it public
// passed as ptr in WM_CREATE
typedef struct {
WNDPROC windowProc;
void *param;
} ALFControlCreateParams;
HWND
ALF_CreateControlWindow(DWORD exstyle, const TCHAR *text, DWORD style,
int x, int y, int w, int h, HWND parent, HMENU hmenu,
WNDPROC windowProc, void *param);
|