--- np2/win9x/dialog/np2class.h 2003/11/01 22:23:04 1.2 +++ np2/win9x/dialog/np2class.h 2007/01/08 07:52:01 1.9 @@ -2,21 +2,24 @@ // 猫用、拡張クラス。 -extern const char np2dlgclass[]; +extern const TCHAR np2dlgclass[]; void np2class_initialize(HINSTANCE hinst); void np2class_deinitialize(void); void np2class_move(HWND hWnd, int posx, int posy, int cx, int cy); -// int CALLBACK np2class_propetysheet(HWND hWndDlg, UINT uMsg, LPARAM lParam); +int CALLBACK np2class_propetysheet(HWND hWndDlg, UINT uMsg, LPARAM lParam); -enum { - NP2GWL_HMENU = 0, - NP2GWL_SIZE = 4 -}; +// ---- class -void np2class_windowtype(HWND hWnd, BYTE type); +#define NP2GWLP_HMENU (0 * sizeof(LONG_PTR)) +#define NP2GWLP_SIZE (1 * sizeof(LONG_PTR)) + +void np2class_wmcreate(HWND hWnd); +void np2class_wmdestroy(HWND hWnd); +void np2class_enablemenu(HWND hWnd, BOOL enable); +void np2class_windowtype(HWND hWnd, UINT8 type); +void np2class_frametype(HWND hWnd, UINT8 thick); HMENU np2class_gethmenu(HWND hWnd); -void np2class_destroymenu(HWND hWnd);