March 25th, 2013, 06:28 AM
MFC Dialog clipping off in low resolution
I have an mfc dialog of size 1280 X 1024 and when i change the resolution to 800 X 600, after adding scroll bar, it don't show the entire dialog contents, Seems like it clips the 800 X 600 portion.
I have handled VScroll and HScroll,, Am I missing something?
it works fine for higher resolutions!
Any help will be appreciated!
March 26th, 2013, 05:03 AM
Re: MFC Dialog clipping off in low resolution
Dialogs are the size you defined them in the template.
if you want the dialog to respond to sizing or scrolling, you'll have to program this yourself, MFC (or Windows itself) doesn't have any built-in provisions for this. You can do it all yourself by careful moving/sizing of the child controls, but you'll have to do all the grunt work.
This limitation is part of why there is a trend away from dialogs and towards technology like Winforms, DHTML, ...
Click Here to Expand Forum to Full Width