mfc - How enable resizing for a child of CMDIChildWnd? -


i have change old mfc-application, uses dialogs derived cmdichildwnd. style of dialog set ws_child | ws_clipchildren | ws_clipsiblings | ws_visible | ws_sysmenu | ws_thickframe | ws_minimizebox. resizing support implemented via on_wm_size() , onsize().

as expected window not have maximize button in title bar. when window minimized onsize() called after request dialog restore original size. nonetheless i'm not able resize dialog.

if add ws_maximizebox dialog's style, of course maximize button in toolbar, disabled. after using title bar's popup menu resize dialog once, works fine - can change size of dialog.

what have change enable resizing these dialogs (without using popup menu of course ;-)?

add ws_sizebox (or possibly ws_thickframe) .rc file. resizing enabled!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -