I just thought id re-read the last post to make sure I didn't mis-read it myself.
"Smirkyguy: I think I finally figured out how to make maximized windows work correctly. It'll be in the next build.
XP: Anim8or(1139) crashes on start-up with Reg:WindowMaximized=1.
(Vista: No crash, but no maximized window on start-up either.)"Ok, So, I read this as being that lStyle |= WS_MAXIMIZE; is not working in 9x,Xp,Vista.
The thing is that I recognise that API from somewhere...
Ok, So, that API does exist in 9x despite what MS say at MSDN.
It also works the same for all OS's that use it (Apparently)
I did find that some people were having difficulty in using it but it seemed none crashed like an8 does. They simply ignored the WS_MAXIMIZED API because it wasn't called right.
Im off out so will quickly look later.
Trev
After a quick read I think something like this is whats expected. Im not sure what language your in or your implementation of it, but from what I read, a lot of people seem to have bother with it.
If RegKeyMax = true
HWND WINAPI CreateWindow(
_In_opt_ LPCTSTR lpClassName,
_In_opt_ LPCTSTR lpWindowName,
_In_ DWORD WS_MAXIMIZE,
_In_ int RegKeyX,
_In_ int RegKeyY,
_In_ int RegKeyWidth,
_In_ int RegKeyHeight,
_In_opt_ HWND hWndParent,
_In_opt_ HMENU hMenu,
_In_opt_ HINSTANCE hInstance,
_In_opt_ LPVOID lpParam
);
else
HWND WINAPI CreateWindow(
_In_opt_ LPCTSTR lpClassName,
_In_opt_ LPCTSTR lpWindowName,
_In_ DWORD WS_TILEDWINDOW ,
_In_ int RegKeyX,
_In_ int RegKeyY,
_In_ int RegKeyWidth,
_In_ int RegKeyHeight,
_In_opt_ HWND hWndParent,
_In_opt_ HMENU hMenu,
_In_opt_ HINSTANCE hInstance,
_In_opt_ LPVOID lpParam
);
I Should correct myself, WS_MAXIMIZE is not an API but an ENUM. It still exists in all Windows OS's though (3x ->