diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-20 13:54:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-20 13:54:07 +0000 |
commit | 418db2636cc5b4e519f281c16a5e0496b80dc8d1 (patch) | |
tree | e374342da6bd1fd8136262266407b824619c27b0 /plugins/Clist_modern/src/hdr | |
parent | 806188a1903da4f59d7610edd5bed457c5978d84 (diff) |
minor code fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12974 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/hdr')
-rw-r--r-- | plugins/Clist_modern/src/hdr/modern_clui.h | 2 | ||||
-rw-r--r-- | plugins/Clist_modern/src/hdr/modern_commonprototypes.h | 3 | ||||
-rw-r--r-- | plugins/Clist_modern/src/hdr/modern_image_array.h | 39 |
3 files changed, 14 insertions, 30 deletions
diff --git a/plugins/Clist_modern/src/hdr/modern_clui.h b/plugins/Clist_modern/src/hdr/modern_clui.h index aaa22f49b6..b9301670c2 100644 --- a/plugins/Clist_modern/src/hdr/modern_clui.h +++ b/plugins/Clist_modern/src/hdr/modern_clui.h @@ -43,8 +43,6 @@ public: ~CLUI();
static HRESULT InitClui() { m_pCLUI = new CLUI(); return S_OK; };
- static HWND& ClcWnd() { return pcli->hwndContactTree; }
- static HWND& CluiWnd() { return pcli->hwndContactList; }
static CLUI * GetClui() { return m_pCLUI; }
static BOOL IsMainMenuInited() { return CLUI::m_fMainMenuInited; }
diff --git a/plugins/Clist_modern/src/hdr/modern_commonprototypes.h b/plugins/Clist_modern/src/hdr/modern_commonprototypes.h index f92b95bb30..757505caf4 100644 --- a/plugins/Clist_modern/src/hdr/modern_commonprototypes.h +++ b/plugins/Clist_modern/src/hdr/modern_commonprototypes.h @@ -237,6 +237,9 @@ void UnloadAvatarOverlayIcon(); / void UnLoadContactListModule(); //clistmod.c
void UpdateAllAvatars(ClcData *dat); //cache_func.c
+void ApplyViewMode(const char *Name, bool onlySelector = false);
+void SaveViewMode(const char *name, const TCHAR *szGroupFilter, const char *szProtoFilter, DWORD statusMask, DWORD stickyStatusMask, unsigned int options, unsigned int stickies, unsigned int operators, unsigned int lmdat);
+
//cluiframes.c
void gtaRenewText(MCONTACT hContact);
int ExtraImage_ExtraIDToColumnNum(int extra);
diff --git a/plugins/Clist_modern/src/hdr/modern_image_array.h b/plugins/Clist_modern/src/hdr/modern_image_array.h index 3d8322146d..e45b3c4fef 100644 --- a/plugins/Clist_modern/src/hdr/modern_image_array.h +++ b/plugins/Clist_modern/src/hdr/modern_image_array.h @@ -32,14 +32,13 @@ Created by Pescuma #include <windows.h>
-typedef struct _IMAGE_ARRAY_DATA_NODE
+struct IMAGE_ARRAY_DATA_NODE
{
int width;
int height;
-}
-IMAGE_ARRAY_DATA_NODE;
+};
-typedef struct _IMAGE_ARRAY_DATA
+struct IMAGE_ARRAY_DATA
{
// Configuration
BOOL width_based;
@@ -59,46 +58,30 @@ typedef struct _IMAGE_ARRAY_DATA IMAGE_ARRAY_DATA_NODE *nodes;
int nodes_size;
int nodes_allocated_size;
-}
-IMAGE_ARRAY_DATA, *LP_IMAGE_ARRAY_DATA;
+};
// Initialize data
-void ImageArray_Initialize(LP_IMAGE_ARRAY_DATA iad, BOOL width_based, int grow_step);
+void ImageArray_Initialize(IMAGE_ARRAY_DATA *iad, BOOL width_based, int grow_step);
// Free data but keep config
-void ImageArray_Clear(LP_IMAGE_ARRAY_DATA iad);
+void ImageArray_Clear(IMAGE_ARRAY_DATA *iad);
// Free data
// If keep_bitmap is TRUE, doesn't delete de bitmap and return its handle. Else, return NULL
-HBITMAP ImageArray_Free(LP_IMAGE_ARRAY_DATA iad, BOOL keep_bitmap);
+HBITMAP ImageArray_Free(IMAGE_ARRAY_DATA *iad, BOOL keep_bitmap);
// Add image to the list (return the index of the image or -1 on error)
// If pos == -1, add to the end of the list
-int ImageArray_AddImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos);
+int ImageArray_AddImage(IMAGE_ARRAY_DATA *iad, HBITMAP hBmp, int pos);
// Change an image in the list (return TRUE on success)
-BOOL ImageArray_ChangeImage(LP_IMAGE_ARRAY_DATA iad, HBITMAP hBmp, int pos);
+BOOL ImageArray_ChangeImage(IMAGE_ARRAY_DATA *iad, HBITMAP hBmp, int pos);
// Remove an image
-BOOL ImageArray_RemoveImage(LP_IMAGE_ARRAY_DATA iad, int pos);
+BOOL ImageArray_RemoveImage(IMAGE_ARRAY_DATA *iad, int pos);
// Draw an image
-BOOL ImageArray_DrawImage(LP_IMAGE_ARRAY_DATA iad, int pos, HDC hdcDest, int nXDest, int nYDest, BYTE Alpha);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+BOOL ImageArray_DrawImage(IMAGE_ARRAY_DATA *iad, int pos, HDC hdcDest, int nXDest, int nYDest, BYTE Alpha);
#endif // __IMAGE_ARRAY_H__
|