Changing the "spelling" of some #defined functions
Posted: Mon Aug 21, 2017 8:48 am
In file \DisplayWindow\DisplayWindow.h at or near line number #28
there are quite a few #defines of which these are two examples:
#define DisplayWindow_SetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_SETFONT,hFont,0)
#define DisplayWindow_GetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_GETFONT,hFont,0)
From the way they are titled they would appear to be specific to the
Display Window (the panel which displays information about selected
items and is gradient filled). From the way they are written they
would seem to be generic to any "window" (where "window" can refer to
windows, buttons, or other controls). Would it make sense to rename
these like:
#define Item_SetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_SETFONT,hFont,0)
#define Item_GetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_GETFONT,hFont,0)
replacing "DisplayWindow" with "Item", "Window" or something similar
So that it is more clear that they can be used generically?
there are quite a few #defines of which these are two examples:
#define DisplayWindow_SetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_SETFONT,hFont,0)
#define DisplayWindow_GetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_GETFONT,hFont,0)
From the way they are titled they would appear to be specific to the
Display Window (the panel which displays information about selected
items and is gradient filled). From the way they are written they
would seem to be generic to any "window" (where "window" can refer to
windows, buttons, or other controls). Would it make sense to rename
these like:
#define Item_SetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_SETFONT,hFont,0)
#define Item_GetFont(hDisplay,hFont) \
SendMessage(hDisplay,DWM_GETFONT,hFont,0)
replacing "DisplayWindow" with "Item", "Window" or something similar
So that it is more clear that they can be used generically?