Restrict window resize or notifications

asked 2018-05-23 08:22:49 -0500

djtommye gravatar image

I'm creating a thumbnail image and would prefer that the user not be able to close or resize the window. Any suggestions on how to do that? I've tried using CV_WINDOW_KEEPRATIO to no avail.

I have another window that I'd like to be notified if it's closed or resized.

Any help would be appreciated!

edit retag flag offensive close merge delete

Comments

forget all those ideas, it cannot do that.

you can use WINDOW_AUTO, so the win will adjust to the image size, and the image itself can't be resized (but yes, the window can), but that's all there is to it.

berak gravatar imageberak ( 2018-05-23 08:58:44 -0500 )edit

@sachinkhanna48 , please do not post answers here, if you have a question or comment. thank you.

berak gravatar imageberak ( 2018-05-27 03:54:09 -0500 )edit