I need my MFC application to minimize on start up. I do not have much experience with MFC.
So far I have tried: removing WS_VISIBLE, calling ShowWindow(SW_HIDE), and using OnSize(...). Each one failed to work and/or causes the application to crash.
My next idea is to use the PostMessage function but I’m unsure as to what the parameters would be.
Can someone show me the parameters to minimize my application using the PostMessage function or give me another option.
Post a
WM_SYSCOMMANDmessage with aSC_MINIMIZEparameter.