#pragma once #include "alf.h" #include #include #include #include #include #ifdef _MSC_VER // MSVC6 for scoping hack # define for if(0){}else for #endif #include "alflist.h" #include "alfcompat.h" #include "alflayout.h" typedef struct { ALFAPP app; ALFWindowVTable *vtbl; void *closure; ALFWindowFonts fonts; int modalResult; ALFLayout layout; WORD defid; HWND hwndFocus; } ALFWindowPriv; struct ALFAppPriv { HINSTANCE hInstance; ALFCompatFunctions *compatFn; TCHAR *comboClass; }; int ALF_CentipointsToPxPriv(ALFWindowPriv *priv, int cptValue); void ALF_UpdateFontsPriv(HWND hwnd, ALFWindowPriv *priv); void ALF_RegisterComboClass(ALFAPP app); void ALF_BuildRandomClassName(ALFAPP app, const TCHAR *prefix, TCHAR *buf);