I just cannot maximize a certain window.I'm using ShowWindow,I tried with all the SW_ parameters,and nothing.And yes,I'm 100% the hwnd is the correct one.
Printable View
I just cannot maximize a certain window.I'm using ShowWindow,I tried with all the SW_ parameters,and nothing.And yes,I'm 100% the hwnd is the correct one.
I meant I tried all SW_ parameters that had something to do with maximizing the window.The code is simple,I minimize the app to the to the taskbar,and my code is just: ShowWindow,that's it.Still,doesn't work.
WEll, either you will show us your real code and answer some very simple questions I asked you, or please, don't expect any help.
In a case like yours I always implement a sample app that basically tests what I doubt about.
You may yourself make sure that ShowWindow works as expected with regular overlapped window (frame window).
You should build the sample, run 689.exe and then control its visibility with controller.exe:
controller 0 - minimize
controller 1 - maximize
controller 2 - restore