Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Disable maximize button for displayed image window

I want to disallow the user from resizing a displayed image window.

One method I am already employing is to create window with following parameter:

cv::namedWindow("Frame",CV_WINDOW_AUTOSIZE);

CV_WINDOW_AUTOSIZE disables resizing of window by dragging.

However, I the window still shows a maximize button, which let's the user maximize the window to full screen. How can I disable this maximize button?

click to hide/show revision 2
retagged

updated 2014-04-03 04:28:23 -0600

berak gravatar image

Disable maximize button for displayed image window

I want to disallow the user from resizing a displayed image window.

One method I am already employing is to create window with following parameter:

cv::namedWindow("Frame",CV_WINDOW_AUTOSIZE);

CV_WINDOW_AUTOSIZE disables resizing of window by dragging.

However, I the window still shows a maximize button, which let's the user maximize the window to full screen. How can I disable this maximize button?