summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-07 14:28:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-07 14:28:32 +0000
commit2ff97d940cc269e7466ea95354e80f04c9483df7 (patch)
tree77453f52eaf89bf1fcd2beecc5038042597df567
parent4a0fce7d613a7b0561603b159323c0bde4e129fd (diff)
EMPTY_EXTRA_ICON macro is introduced to mark the empty/missing extra icon
git-svn-id: http://svn.miranda-ng.org/main/trunk@2230 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--include/m_clc.h4
-rw-r--r--include/m_extraicons.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/m_clc.h b/include/m_clc.h
index 67ffdd9f3f..b8d50d864b 100644
--- a/include/m_clc.h
+++ b/include/m_clc.h
@@ -78,7 +78,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define CLM_GETEDITCONTROL (CLM_FIRST+13) //returns the HWND, or NULL
#define CLM_GETEXPAND (CLM_FIRST+14) //wParam = hItem, returns a CLE_, CLE_INVALID if not a group
#define CLM_GETEXTRACOLUMNS (CLM_FIRST+15) //returns number of extra columns
-#define CLM_GETEXTRAIMAGE (CLM_FIRST+16) //wParam = hItem, lParam = MAKELPARAM(iColumn (0 based),0), returns iImage or 0xFF
+#define CLM_GETEXTRAIMAGE (CLM_FIRST+16) //wParam = hItem, lParam = MAKELPARAM(iColumn (0 based),0), returns iImage or EMPTY_EXTRA_ICON
#define CLM_GETEXTRAIMAGELIST (CLM_FIRST+17) //returns HIMAGELIST
#define CLM_GETFONT (CLM_FIRST+18) //wParam = fontId, see clm_setfont. returns hFont.
#define CLM_GETINDENT (CLM_FIRST+19) //wParam = new group indent
@@ -116,7 +116,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define CLM_SETBKCOLOR (CLM_FIRST+28) //wParam = a COLORREF, default is GetSysColor(COLOR_3DFACE)
#define CLM_SETCHECKMARK (CLM_FIRST+29) //wParam = hItem, lParam = 1 or 0
#define CLM_SETEXTRACOLUMNS (CLM_FIRST+30) //wParam = number of extra columns (zero to EXTRA_ICON_COUNT from clc.h, currently 16)
-#define CLM_SETEXTRAIMAGE (CLM_FIRST+31) //wParam = hItem, lParam = MAKELPARAM(iColumn (0 based),iImage). iImage = 0xFF is a blank
+#define CLM_SETEXTRAIMAGE (CLM_FIRST+31) //wParam = hItem, lParam = MAKELPARAM(iColumn (0 based),iImage). iImage = EMPTY_EXTRA_ICON is a blank
#define CLM_SETEXTRAIMAGELIST (CLM_FIRST+32) //lParam = HIMAGELIST
#define FONTID_CONTACTS 0
diff --git a/include/m_extraicons.h b/include/m_extraicons.h
index 40d1ffd02d..921346ad3c 100644
--- a/include/m_extraicons.h
+++ b/include/m_extraicons.h
@@ -24,6 +24,8 @@
#define EXTRA_ICON_COUNT 10
#endif
+#define EMPTY_EXTRA_ICON 0xFFFF
+
// Adding icon to extra image list.
// Used for EXTRAICON_TYPE_CALLBACK extra icons
//