Re: ComboBox DropDown Size: Design vs Run Time?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Joseph M. Newcomer wrote:
I never set it at design time. See my dynamically-resizing dropdown class on my MVP Tips
site. It has the advantage that it successfully avoids ever putting up a scrollbar if

Why don't you set it to like 1024 or 2048 at design time? Then you don't need the extra code and I think it does exactly what you wish.


But: ::GetSystemMetrics(SM_CYSCREEN);

Does that work correctly on multi-monitor systems with different resolutions on each monitor or weird setups?
.




Relevant Pages

  • Re: ComboBox DropDown Size: Design vs Run Time?
    ... Joseph M. Newcomer wrote: ... It has the advantage that it successfully avoids ever putting up a scrollbar if everything would be visible. ... It makes the decision at runtime, which I agree with you, is the only correct time to make the decision. ...
    (microsoft.public.vc.mfc)
  • Re: Where do my CWnd message go?
    ... Thank you for responding to my request Mr. Newcomer. ... I did not want to bother people with too many details if it was possible ... Due to the architecture of this particular part of the code PreTranslate has ... the scrollbar should be enough information. ...
    (microsoft.public.vc.mfc)