CBUILDER.H
资源名称:cbuilder.zip [点击查看]
上传用户:needlamp
上传日期:2007-01-07
资源大小:78k
文件大小:2k
源码类别:
Delphi控件源码
开发平台:
Visual C++
- #include "resource.h"
- #define MAIN_WINDOW_HEIGHT 100
- #define PRJ_BTN_COUNT 10
- #define PRJ_BTN_WIDTH 22
- #define PRJ_BTN_HEIGHT 22
- #define STYLE_BTN_HEIGHT 17
- #define STYLE_WND_HEIGHT 19
- #define STYLE_COUNT 0
- #define STYLE_START 2
- #define STYLE_END 4
- #define STYLE_SELECT 6
- #define MOUSE_STATE 8
- #define STYLE_MAX_COUNT 20
- #define STATE_MOUSEDOWN 0x01
- #define STATE_MOUSEOUT 0x02
- #define STATE_ALL 0xFF
- #define WM_DRAWBUTTON WM_USER+1
- #define WM_STYLECHANGED WM_USER+2
- #define WM_ADDITEM WM_USER+3
- #define StateSet(s, wFlags) (s |= (wFlags))
- #define StateClear(s, wFlags) (s &= ~(wFlags))
- #define StateTest(s, wFlags) (s & (wFlags))
- extern HINSTANCE hInst;
- extern HWND hWndMain,hWndPrj,hWndStyle,hWndCtl,hWndInsp,hWndCode;
- extern HWND hWndPrev;
- extern char CurWndClass[40];
- int PASCAL WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
- BOOL InitApplication(HINSTANCE);
- BOOL InitInstance(HINSTANCE, int);
- BOOL CreateMainChild(HWND);
- HWND CreateChild(HWND,LPSTR,WNDPROC,int,int,int,int,UINT,int);
- BOOL RegLGFORM(void);
- HWND CreateNewForm(void);
- HWND CreateInspWnd(void);
- void ExitProg(void);
- void ErrorMessage(LPSTR);
- long CALLBACK __export MainWndProc(HWND, UINT, WPARAM, LPARAM);
- long CALLBACK __export PrjWndProc(HWND, UINT, WPARAM, LPARAM);
- long CALLBACK __export StyleWndProc(HWND, UINT, WPARAM, LPARAM);
- long CALLBACK __export CtlWndProc(HWND, UINT, WPARAM, LPARAM);
- long CALLBACK __export FormWndProc(HWND, UINT, WPARAM, LPARAM);
- long CALLBACK __export InspWndProc(HWND, UINT, WPARAM, LPARAM);
- BOOL __export CALLBACK About(HWND, UINT, WPARAM, LPARAM);