Have you tried separating her treats into *all* your cupboards so she can't really distinguish which cupboard to bark at? Take the treats out of different cupboards every time so she can't pinpoint where you're getting them every time (don't make it routine). Maybe that will confuse her enough?
Also, if she's nosing and nudging the cupboard they must be the lower cupboards (near the floor) - do you have any high cabinets that are nearer to the ceiling of your kitchen that she can't "sniff out" quite as easily? I would put them in those. It may not stop the whining and barking but it definitely will stop the nosing and nudging.
I would recommend putting treats and food into airtight containers too (not original boxes and bags) so the smell of the goodies don't waft through the air via the cracks in the cupboard door (it will keep them fresher too)
I too can picture this and it's a very funny image.