The chances are that you didn't read the MSDN documentation:
OnCreate[
^]
which states:
"This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function."
So if you change the values in the CREATESTRUCT parameter, your changes will be ignored - this would appear to you as if it "does not work" I am thinking.
I suspect that whatever the heck you are trying to do, you are trying to do it completely the wrong way.
"I want to change the size of window"
Try reading this:
Some handy dialog box tricks, tips and workarounds[
^] - I haven't tried it (because I don;t have a C++ MVC project handy), but the SetWindowPos code should do it.