Skip to content
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

Question: how does resizelib respond to existing gripper? #33

Closed
adipose opened this issue Jul 1, 2024 · 4 comments
Closed

Question: how does resizelib respond to existing gripper? #33

adipose opened this issue Jul 1, 2024 · 4 comments

Comments

@adipose
Copy link

adipose commented Jul 1, 2024

CStatusBar can have style SBARS_SIZEGRIP, which creates a gripper in the bottom right of the statusbar.

What does resizelib do in this case? Does it just draw on top of it?

I tried to disable the gripper from resizelib, but I realized it was being drawn by win32, as well.

@ppescher
Copy link
Owner

ppescher commented Aug 5, 2024

Never tried on a dialog box, but in SDI applications the sizegrip is hidden. You can hide it too in dialogs. Of course the status bar will show its own sizegrip.

@adipose
Copy link
Author

adipose commented Aug 5, 2024

It doesn't matter much but I wonder if disabling it from resizelib should update the CStatusBar style to match?

@ppescher
Copy link
Owner

I guess it is the responsibility of the final dialog class, which creates the CStatusBar, to disable the CResizableSizeGrip and use only the status bar.

@adipose
Copy link
Author

adipose commented Sep 20, 2024

OK, thank you for documenting that here. In my experience, it works fine as-is, but I was confused when I realized there were two things drawing the same gripper.

@adipose adipose closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants