Window creation problems...
Isn't there something else you have to do for multimon support? I remember seeing HMONITOR variables and EnumMonitor calls somewhere... and I believe there's a sample app that shows how to do it (multi-monitor Roids, I think).
Sorry if I'm restating the obvious.
Mason McCuskey
Spin Studios
www.spin-studios.com
I put OutputDebugString() calls before and after it, and it would output the one above it but not the one below it.
Any suggestions?
I am assuming you can't use a debugger here for some reason...
------------------
-Kentamanos
// A handle to the window.
HWND hwnd;
// The windows class that describes the window.
WNDCLASS wc;
// Set up and register the window class.
wc.style = CS_DBLCLKS;
wc.lpfnWndProc = ( WNDPROC )WindowProc;
wc.cbClsExtra = NULL;
wc.cbWndExtra = NULL;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon( hInstance, IDI_APPLICATION );
wc.hCursor = LoadCursor( NULL, IDC_ARROW );
wc.hbrBackground = ( HBRUSH )GetStockObject( BLACK_BRUSH );
wc.lpszMenuName = NULL;
wc.lpszClassName = "HEATHENwindow";
if ( RegisterClass( &wc ) == FALSE )
return FALSE;
// Create a fullscreen window.
if ( ( hwnd = CreateWindowEx( WS_EX_TOPMOST, "HEATHENwindow", "HEAHTEN",
WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0, 0,
SCREEN_W, SCREEN_H, NULL, NULL, hInstance, NULL ) )
== NULL )
return FALSE;
I would appreciate any help anyone might have. My mind is boggled.
Matthew Allen
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/