win32gui: missing but for UI tweaks (from <Someone>)
"Count: XXXX" was getting cut-off in the menu
This commit is contained in:
@@ -1007,6 +1007,7 @@ BOOL onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
|||||||
RECT client_rt;
|
RECT client_rt;
|
||||||
|
|
||||||
GetClientRect(lpdis->hwndItem, &client_rt);
|
GetClientRect(lpdis->hwndItem, &client_rt);
|
||||||
|
client_rt.right = min(client_rt.right, lpdis->rcItem.right);
|
||||||
if( NHMENU_IS_SELECTABLE(*item) &&
|
if( NHMENU_IS_SELECTABLE(*item) &&
|
||||||
data->menu.items[lpdis->itemID].count!=0 &&
|
data->menu.items[lpdis->itemID].count!=0 &&
|
||||||
item->glyph != NO_GLYPH ) {
|
item->glyph != NO_GLYPH ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user