Toolbar with resizeable controls?
Jesper Spring -- jesper_spring@Merck.Com Monday, February 05, 1996 Hi, Does anyone know how to implement a toolbar with resizeable controls (fx. editbox'es, buttons etc) on changes in framesize? I have tried deriving a class from CDialogBar, put in my controls in the template, but I have not found a way yet to change the control sizes on changes in framesize. Also how do I force a repaint of the toolbar? I have tried several alternatives like Invalidate etc., but with no success. Thanks very much in advance, Jesper Honig Spring Merck & Co., Inc. Denmark *** Standard Disclaimer ***
Deepak Saxena -- Deepak_Saxena@ccm.ch.intel.com Tuesday, February 06, 1996 Does anyone know how to implement a toolbar with resizeable controls (fx. editbox'es, buttons etc) on changes in framesize? I have tried deriving a class from CDialogBar, put in my controls in the template, but I have not found a way yet to change the control sizes on changes in framesize. _______________________________________________________________________________ You should be able to overide OnSize and then recalc the size of all your _controls_. I don't think you can change the size of the toolbar buttons without it looking really ugly since the bitmaps are set to 16x16 _______________________________________________________________________________ Also how do I force a repaint of the toolbar? I have tried several alternatives like Invalidate etc., but with no success. ________________________________________________________________________ Did you try posting a WM_PAINT? If that doesn't work, just paint the thing during OnIdle...I don't know that this will work, just taking a wild stab at it
| Вернуться в корень Архива |