diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-26 16:50:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-26 16:50:14 +0000 |
commit | c992cb2fdc11f1cac4bc5cbce26e8e2bb3b57da0 (patch) | |
tree | 697bdbf38a8a1f6b828a8bfbd08a478e19a82c6b /plugins/Clist_modern/modern_toolbar.cpp | |
parent | f616294363c642d138f9dc0ef6eceae639e2434c (diff) |
- microkernel addded;
- version bumped to 0.92.2
git-svn-id: http://svn.miranda-ng.org/main/trunk@641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_toolbar.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_toolbar.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/Clist_modern/modern_toolbar.cpp b/plugins/Clist_modern/modern_toolbar.cpp index 7720bae7fd..56078d03cc 100644 --- a/plugins/Clist_modern/modern_toolbar.cpp +++ b/plugins/Clist_modern/modern_toolbar.cpp @@ -192,7 +192,7 @@ HRESULT ToolbarLoadModule() RegisterClass(&wndclass);
}
}
- tbdat.listOfButtons=li.List_Create(0,1);
+ tbdat.listOfButtons=List_Create(0,1);
InitializeCriticalSection(&tbdat.cs);
return S_OK;
}
@@ -322,7 +322,7 @@ static INT_PTR svcToolBarAddButton(WPARAM wParam, LPARAM lParam) mtbi->bVisible = bVisible;
mtbi->bPanelID = bPanel;
- li.List_InsertPtr(tbdat.listOfButtons,mtbi);
+ List_InsertPtr(tbdat.listOfButtons,mtbi);
if (mtbi->bVisible)
result=(INT_PTR)ToolBar_AddButtonToBars(mtbi);
@@ -798,7 +798,7 @@ static LRESULT CALLBACK ToolBar_WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM pMTBInfo->wLastHeight=Frame.height;
pMTBInfo->nLineCount = 1;
- pMTBInfo->pButtonList=li.List_Create(0,1);
+ pMTBInfo->pButtonList=List_Create(0,1);
Frame.name=(char*) lpcs->lpCreateParams;
hFrame=(HANDLE)CallService(MS_CLIST_FRAMES_ADDFRAME,(WPARAM)&Frame,(LPARAM)0);
@@ -879,7 +879,7 @@ static LRESULT CALLBACK ToolBar_WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM xpt_FreeThemeForWindow(hwnd);
WindowList_Remove( tbdat.hToolBarWindowList, hwnd );
SendMessage(hwnd, MTBM_REMOVE_ALL_BUTTONS, 0, 0 );
- li.List_Destroy( pMTBInfo->pButtonList );
+ List_Destroy( pMTBInfo->pButtonList );
mir_free( pMTBInfo->pButtonList );
SetWindowLongPtr( hwnd, GWLP_USERDATA, 0 );
mir_free( pMTBInfo );
@@ -902,7 +902,7 @@ static LRESULT CALLBACK ToolBar_WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM mtbi->hWindow=hwndButton;
mtbi->hwndToolBar=hwnd;
- li.List_Insert(pMTBInfo->pButtonList, mtbi, pMTBInfo->pButtonList->realCount); //just insert pointer. such object are managed in global tbbutton list
+ List_Insert(pMTBInfo->pButtonList, mtbi, pMTBInfo->pButtonList->realCount); //just insert pointer. such object are managed in global tbbutton list
if (hwndButton)
{
char * buttonId=(char *)_alloca(sizeof("ToolBar.")+strlen(mtbi->szButtonID)+2);
@@ -930,9 +930,9 @@ static LRESULT CALLBACK ToolBar_WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM mtbi->hwndToolBar = NULL;
}
}
- li.List_Destroy( pMTBInfo->pButtonList );
+ List_Destroy( pMTBInfo->pButtonList );
mir_free( pMTBInfo->pButtonList );
- pMTBInfo->pButtonList=li.List_Create(0,1);
+ pMTBInfo->pButtonList=List_Create(0,1);
break;
}
case WM_SIZE:
@@ -1072,14 +1072,14 @@ static LRESULT CALLBACK ToolBar_WndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM mtbi=(MTB_BUTTONINFO*)pMTBInfo->pButtonList->items[i];
if (mtbi==(MTB_BUTTONINFO*)wParam)
{
- li.List_Remove(pMTBInfo->pButtonList,i);
+ List_Remove(pMTBInfo->pButtonList,i);
for (int j=0; j<tbdat.listOfButtons->realCount; j++)
if (mtbi==(MTB_BUTTONINFO*)tbdat.listOfButtons->items[j])
{
- li.List_Remove(tbdat.listOfButtons,j);
+ List_Remove(tbdat.listOfButtons,j);
break;
}
- li.List_RemovePtr(tbdat.listOfButtons,mtbi);
+ List_RemovePtr(tbdat.listOfButtons,mtbi);
delete_MTB_BUTTONINFO((void*)mtbi);
mtbi=NULL;
pcli->pfnInvalidateRect(hwnd, NULL, FALSE);
|