ppescher / resizablelib

A set of MFC classes to easily make resizable windows
Other
55 stars 28 forks source link

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

Closed adipose closed 1 month ago

adipose commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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

ppescher commented 1 month ago

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 commented 1 month ago

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.