Zhang
Zhang

Reputation: 3346

Minimize, Maximize button disappear without any reason

enter image description here

It's a dialog based MFC application. I didn't intentionally add any code about the Minimize, Maximize and Restore button. It can show those button at the first. But it just disappear after long time running. Or maybe sleep of the computer causes this?

I have no idea about this, do you have any clue?

Edited: Thanks @xMRi's remind, I checked its style, seems still to be right. enter image description here

Upvotes: 1

Views: 2007

Answers (3)

mamaP
mamaP

Reputation: 1

Press F11 for Windows 10, or right-click on the application which you can't see windows button then choose view finally uncheck the full screen

Upvotes: 0

Santosh
Santosh

Reputation: 1815

Listed below few possible reason & resolution may impact you application look. More specifically, your device manager plays important role in application appearance. I would say its environment or certain unnecessary application(Virus)installation issue rather than your MFC application issue.

Full Fix: Minimize, Maximize and Close Buttons Disappear

Upvotes: 1

Zhang
Zhang

Reputation: 3346

At least I know a way to restore the disappared system buttons.

ModifyStyle(0, WS_MINIMIZEBOX);
GetSystemMenu(FALSE)->InsertMenu(-1, MF_BYPOSITION, SC_MINIMIZE, _T("Minimize"));

Upvotes: 0

Related Questions