Brew之TabWidget实例
一、创建TabApp工程,做如下准备工作
1、在工程文件下添加TabAp.h、TabApp.cpp、BaseWin.h、BaseWin.cpp、Includer.h、Helper.h这样几个文件
2、打开工程,将上面的这些文件添加到工程,然后删除原有的TabAPP.c
3、文件将forms,widgets,widgettc这样一些必要的文件夹复制到.mif同目录的文件夹下
二、编写代码
1、编写Includer.h文件
#ifndef INCLUDER_BUIW_H_
#define INCLUDER_BUIW_H_
extern "C"
{
//Form
#include "AEEForm.h"
#include "AEECLSID_FORM.bid"
//RootForm
#include "AEERootForm.h"
#include "AEECLSID_ROOTFORM.bid"
//Popup
#include "AEEPopup.h"
#include "AEECLSID_POPUPFORM.bid" /*Identifies the class ID of the popup form*/
#include "AEECLSID_POPUPMENUFORM.bid" /*Identifies the class ID of the popup menu form*/
#include "AEECLSID_POPUPMENUFORM_SCROLL.bid" /*Identifies the class ID of the popup menu form with scrollbar*/
//Dialog
#include "AEEDialog.h"
#include "AEECLSID_DIALOGFORM.bid" /*Identifies the class ID of the dialog form*/
#include "AEECLSID_PROGRESSDIALOG.bid" /*Identifies the class ID of the progress dialog*/
#include "AEECLSID_INFODIALOG.bid" /*Identifies the class ID of the info message dialog*/
#include "AEECLSID_ERRORDIALOG.bid" /*Identifies the class ID of the error message dialog*/
#include "AEECLSID_WARNDIALOG.bid" /*Identifies the class ID of the warning message dialog*/
//listForm
#include "AEEListForm.h"
#include "AEECLSID_LISTFORM.bid" /*Identifies the class ID of the list form*/
#include "AEECLSID_LISTFORM_SCROLL.bid" /*Identifies the class ID of the scrollbar list form*/
//Bitmap Widget
#include "AEEBitmapWidget.h"
#include "AEECLSID_BITMAPWIDGET.bid" /*Identifies the class ID of the bitmap widget*/
//Blend Widget
#include "AEEBlendWidget.h"
#include "AEECLSID_BLENDWIDGET.bid" /*Identifies the class ID of the blend widget*/
//Border Widget
#include "AEEBorderWidget.h"
#include "AEECLSID_BORDERWIDGET.bid" /*Identifies the class ID of the border widget*/
//button Widget
#include "AEEButtonWidget.h"
#include "AEECLSID_BUTTONWIDGET.bid" /*Identifies the class ID of the button widget*/
//Canvas
#include "AEECanvas.h"
#include "AEECLSID_CANVAS.bid" /*Class ID for an instance of an ICanvas object*/
//Card Container
#include "AEECardContainer.h"
#include "AEECLSID_CARDCONTAINER.bid" /*Identifies the class ID of the card container*/
//Caret Widget
#include "AEECaretWidget.h"
#include "AEECLSID_CARETWIDGET.bid" /*Identifies the class ID of the caret widget*/
//Check Widget
#include "AEECheckWidget.h"
#include "AEECLSID_CHECKWIDGET.bid" /*Identifies the class ID of the checkbox widget*/
#include "AEECLSID_RADIOWIDGET.bid" /*Identifies the class ID of the radio button widget*/
//Constraint Container
#include "AEEConstraintContainer.h"
#include "AEECLSID_CONSTRAINTCONTAINER.bid" /*Identifies the class ID of the constraint container*/
//Cursor Widget
#include "AEECursorWidget.h"
#include "AEECLSID_CURSORWIDGET.bid" /*Identifies the class ID of the cursor widget*/
//DateTime Widget
#include "AEEDateTimeWidget.h"
#include "AEECLSID_JULIANDATEWIDGET.bid" /* Identifies the class ID of the julian date widget*/
#include "AEECLSID_JULIANTIMEWIDGET.bid" /* Identifies the class ID of the julian time widget*/
#include "AEECLSID_DATEWIDGET.bid" /* Identifies the class ID of the date widget (DEPRECATED)*/
#include "AEECLSID_TIMEWIDGET.bid" /* Identifies the class ID of the time widget (DEPRECATED)*/
//Display Canvas
#include "AEEDisplayCanvas.h"
#include "AEECLSID_DISPLAYCANVAS.bid" /*Class ID for an instance of an ICanvas object*/
//DrawDecorator Widget
#include "AEEDrawDecoratorWidget.h"
#include "AEECLSID_DRAWDECORATORWIDGET.bid" /*Identifies the class ID of the draw decorator widget*/
//FontMap Model
#include "AEEFontMapModel.h"
#include "AEECLSID_FONTMAPMODEL.bid" /*Identifies the class ID of the font map model*/
//Grid Container
#include "AEEGridContainer.h"
#include "AEECLSID_GRIDCONTAINER.bid" /*Identifies the class ID of the grid container*/
//ImageStatic Widget
#include "AEEImageStaticWidget.h"
#include "AEECLSID_IMAGESTATICWIDGET.bid" /*Identifies the class ID of the image static widget*/
//Image Widget
#include "AEEImageWidget.h"