Do not panic. Ask here before giving up.
only WhenClosed is TopWindow's CALLBACK. and then the other CALLBACK belonging to Ctrl, Action, seems relavant, but when i resize TopWindow, it is not called. After reading Ctrl's document, i suppose Layout() is invoked when it is resized. Then do I have to reimplement TopWindow's Layout()?
What about Paint(...); ? Werner
bonami wrote on Fri, 01 February 2008 21:44 only WhenClosed is TopWindow's CALLBACK. and then the other CALLBACK belonging to Ctrl, Action, seems relavant, but when i resize TopWindow, it is not called. After reading Ctrl's document, i suppose Layout() is invoked when it is resized. Then do I have to reimplement TopWindow's Layout()? Yes. Layout is called whenever "metrics" change. That includes some other cases over simple resize, e.g. change of Windows theme too, but generally, if you want to setup your internal state based on metrics, it is the right place to do so. Mirek
So ctrl resize events can only be caught by overwriting Layout method, right? Or is there another method that is called if and only if a ctrl (or top window) resize occurrs? Matthias
masu wrote on Fri, 22 February 2008 18:40 So ctrl resize events can only be caught by overwriting Layout method, right? Or is there another method that is called if and only if a ctrl (or top window) resize occurrs? Matthias Layout() is good enough for me