Changeset 625 in dev for trunk/ab5.0/abdev/abdev/Common.h


Ignore:
Timestamp:
May 27, 2008, 9:17:34 PM (16 years ago)
Author:
dai_9181
Message:

・WindowInfoクラスをリファクタリング
・MdiInfoを単純配列からvectorに変更した。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/abdev/Common.h

    r624 r625  
    258258struct RAD_UNDOSTATE_NAME{
    259259    std::string name;
    260     std::string HandleName;
    261     char *CallBackName;
    262260};
    263261#define RAD_UNDO_INSERTWND  1
     
    357355    int DocType;
    358356    char *title;
    359     char *path;
     357    std::string path;
    360358
    361359    union{
     
    368366    char *IndentStr;
    369367};
    370 extern MDIINFO MdiInfo[MAX_WNDNUM];
     368extern std::vector<MDIINFO> MdiInfo;
    371369
    372370//RADツールのマウスドラッグ
     
    483481#define EVENTTYPE_MMSYS     2
    484482
    485 //ウィンドウ タイプ
    486 #define WNDTYPE_DEFAULT     0
    487 #define WNDTYPE_MODALDLG    1
    488 #define WNDTYPE_MODELESSDLG 3
    489483
    490484struct NEWPROJECTINFO{
     
    648642char *ReadBuffer( const std::string &path );
    649643char *ReadBuffer_NonErrMsg( const std::string &path );
    650 _int8 WriteBuffer(const std::string &path,char *buffer,int length, bool isEnableError = true);
     644_int8 WriteBuffer(const std::string &path,const char *buffer,int length, bool isEnableError = true);
    651645_int8 WriteBuffer_NonErrMsg(const std::string &path,char *buffer,int length);
    652646void GetRelationalPath(char *path,char *dir);
     
    738732void SetupWindow(HWND hwnd);
    739733BOOL SetRunning(HWND hChild);
    740 BOOL IsNeedCompile(char *FileName,BOOL bDebug);
     734BOOL IsNeedCompile( const std::string &filepath, BOOL bDebug );
    741735std::string GetLastErrorString();
    742736
     
    875869
    876870    void add(char *path);
    877     void insert(char *path);
     871    void insert(const char *path);
    878872
    879873    void ResetFileMenu(CSubMenuEx *pobj_SubMenu,BOOL bOwnerDraw);
     
    969963
    970964//WindowControl.cpp
    971 int GetWndInfoNum(char *name);
    972 ActiveBasic::PM::WindowInfo *GetWndInfo( char *name );
     965int GetWndInfoNum( const std::string &name );
     966ActiveBasic::PM::WindowInfo *GetWndInfo( const std::string &name );
    973967HGLOBAL Rad_GetChildInfoClipboardData(int WndNum,int WndInfoNum);
    974968void Rad_PasteChildInfoClipboardData(int WndNum,HGLOBAL hGlobal);
    975969char *PermutationWndPgmTemplate(char *pBuf,const char *pPjName, char *pWndName, char *pHandleName, char *pProcName);
     970const std::string PermutationWndPgmTemplate( const std::string &templateFilePath, const std::string &projectName, std::string &windowName, std::string &handleName, std::string &procName );
    976971void GetItemClassName(char *buffer,int Control);
    977972void SaveWindowProgram();
     
    10571052
    10581053//MenuProc.cpp
    1059 int GetMenuInfoNum(const char *name);
     1054int GetMenuInfoNum(const std::string &name);
    10601055void HeapMenuDataFree(MENU_INFO *pMenuInfo,int ItemNum,int *NumberOfFreedItem);
    10611056BOOL CALLBACK DlgProject_MenuID_Input(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
Note: See TracChangeset for help on using the changeset viewer.