Andreas Falkenhahn schrieb: > what method is suggested to force a complete refresh of a custom class from > within that class? > I want MUI to send a MADF_DRAWOBJECT message with RPTAG_DrawBounds set to the > full dimensions of my class. > > I figured out that the trick with MUIM_Group_InitChange/ExitChange works but > I wonder if there's > a nicer way because I'm not so sure if Init/ExitChange still works correctly > with MUI4. > > If I'd know the RPTAG_DrawBounds of my custom class, I could use > MADF_DRAWUPDATE > to do the refresh of course. If MUI sends a MADF_DRAWOBJECT and wants my > class to > completely redraw itself, does RPTAG_DrawBounds then equal to > > rect.MinX = _mleft(obj) > rect.MinY = _mtop(obj) > rect.MaxX = _mright(obj) > rect.MaxY = _mbottom(obj) ?? > > If that would be the case, I could drop the MUIM_Group_InitChange/ExitChange > stuff > and simply use MADF_DRAWUPDATE. > > By the way, my custom class is in a scroll group. > > Any ideas?
Sorry, I don't know of any other smoother way of forcing a complete refresh myself than using the MUIM_Group_InitChange/ExitChange 'trick' you are talking about. For example, YAM itself also uses InitChange/ExitChange to force a group layout due to changed dimensions in a LayoutHook. However, I also do have the feeling MUI requires a better way of achieving something like that. But until that happens I guess you really have to keep on using InitChange/ExitChange. cheers, jens -- Jens Langner Ph: +49-172-4452254 Rißweg 27b 01324 Dresden [EMAIL PROTECTED] Germany http://www.jens-langner.de/ Visit http://www.amiga.dk/tumult for MUI-related information, especially about MUI custom classes. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/MUI/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/MUI/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
