First, just to set the level of this question, I am new to PB and new to windows programming in general but am very familiar with console programming in other languages.
I am trying to figure out the correct syntax to create a window that is initially maximized. I have gone through several references and found things such as WS_MAXIMIZE etc etc along with various options for windows style and initial position etc....all seem to be related ... the problem is that when I attempt to use them as listed in various tutorials, I get no effect....
So, starting with the template below, how would I modify the syntax so the window is maximized at program start?
g_hWndMain = CreateWindow(szClassName, _ ' window class name
"Simple Program Skeleton", _ ' window caption
%WS_OVERLAPPEDWINDOW, _ ' window style
%CW_USEDEFAULT, _ ' initial x position
%CW_USEDEFAULT, _ ' initial y position
%CW_USEDEFAULT, _ ' initial x size
%CW_USEDEFAULT, _ ' initial y size
%HWND_DESKTOP, _ ' parent window handle
hMenu, _ ' window menu handle
hInstance, _ ' program instance handle
BYVAL %NULL) ' creation parameters
I am trying to figure out the correct syntax to create a window that is initially maximized. I have gone through several references and found things such as WS_MAXIMIZE etc etc along with various options for windows style and initial position etc....all seem to be related ... the problem is that when I attempt to use them as listed in various tutorials, I get no effect....
So, starting with the template below, how would I modify the syntax so the window is maximized at program start?
g_hWndMain = CreateWindow(szClassName, _ ' window class name
"Simple Program Skeleton", _ ' window caption
%WS_OVERLAPPEDWINDOW, _ ' window style
%CW_USEDEFAULT, _ ' initial x position
%CW_USEDEFAULT, _ ' initial y position
%CW_USEDEFAULT, _ ' initial x size
%CW_USEDEFAULT, _ ' initial y size
%HWND_DESKTOP, _ ' parent window handle
hMenu, _ ' window menu handle
hInstance, _ ' program instance handle
BYVAL %NULL) ' creation parameters
Comment