-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the use of ResizableLib in mpc-hc #31
Comments
Merging your latest to mpc-hc here: clsid2/mpc-hc#2885 Note, mpc-hc only uses about 26 files from resizablelib. I'm not sure how many of the newer files were in the original version that was adopted by mpc-hc! |
Thanks, I will have a look at your changes and see what can be included. |
Awesome, thank you! Good to know you are a customer! I have always thought resizelib was an old abandoned project so it's nice to meet you. |
This particular code seems like it's essentially fixing a bug/shortcoming of CDialog and menus. Possible solutions for mpc-hc:
|
Hi, I have another question. Would you consider adding #ifdefs to the codebase that identify MPC-HC specific code? It might be easier, specifically for |
Could you not change CCmdUIDialog to derive from CResizableDialog? Does it break things? |
I probably could. The trick would be if we have any non-resizing cases that derive from it. I count one, the |
@ppescher , I did try deriving classes from CResizableDialog. The result was they became resizable, where previously they had not been. So at that point the issue becomes: they resize but are not designed to resize, so it just increases the window size without moving widgets anywhere. I'm not sure if the library supports the concept of something that derives from CResizableDialog without resizing...not sure there is much point, other than code reuse. |
Feel free to close this, I'm trying to document the changes we've internally made to a copy of your lib from 2014.
CResizableDialog
inherits fromCCmdUIDialog
instead ofCDialog
.CResizableDialog::OnSize
has an extra Invalidate() call for some redraw bugs. Have to track down the cause.CResizableDialog
uses __super instead ofCDialog
(you could do the same without causing any changes, but for us it calls the correct parent method)CResizableState
ReadState
andWriteState
to support custom storage ids.ResizableWndState
adds an ability to set the show command to SW_HIDEResizableWndState
updated to use different signature toCResizableState
methodsThe text was updated successfully, but these errors were encountered: