Configuring pixmaps for toggled buttons

I’m trying to change a pixmap for a button when a window is maximized. I’ve implemented a “DoMaximize” function from this post: fvwmforums.org/phpBB3/viewt … 6879#p6879

I’m unsure how to integrate toggled pixmaps for buttonstyles. I see that there is a toggleactive buttonstyle state available, but I am not sure how to integrate its functionality. What should I look at to configure this properly?

To answer my question. I needed to add MwmDecorMax to the appropriate buttonstyle, button 2 for my case.

ButtonStyle 2 - MwmDecorMax

Followed by MwmButtons style.

Style * MwmButtons

Now states like ToggledActiveUp, ToggledActiveDown can be used.

Do you get any errors after implementing that, DCH?