hWnd = CreateWindow(
szAppName,
"test",
WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
WS_MAXIMIZEBOX | WS_MAXIMIZE,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
0,
0,
hInstance,
0 );
Win32 Maxamize
Hi,
Im having some trouble maxamizing my application when it starts up, my code is as follows.
cheers for any help
You need to specify WS_VISIBLE to make use WS_MAXIMIZE I think.
Else you could simply use SW_MAXIMIZE in your ShowWindow call.
Else you could simply use SW_MAXIMIZE in your ShowWindow call.
cheers for the reply,
WS_VISIBLE dosent seem to make any difference, an i really want to set it as maximised in this structure,
it is really confusing me.
cheers
WS_VISIBLE dosent seem to make any difference, an i really want to set it as maximised in this structure,
it is really confusing me.
cheers
don''t do it that way. Take out the maximize flag and when you call ShowWindow, use ShowWindow(SW_MAXIMIZE);
See, you aren''t saying what you are using when you are calling ShowWindow. I''m betting that you are currently overriding the window style.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement