nanogui: Using create structures.


Previous by date: 18 Jan 2000 04:32:11 -0000 Re: Length of Window extra bytes., Chris Johns
Next by date: 18 Jan 2000 04:32:11 -0000 Re: Length of Window extra bytes., Greg Haerr
Previous in thread:
Next in thread: 18 Jan 2000 04:32:11 -0000 Re: Using create structures., Greg Haerr

Subject: Using create structures.
From: Chris Johns ####@####.####
Date: 18 Jan 2000 04:32:11 -0000
Message-Id: <3883EA59.355F9324@acm.org>

Hi,

In `CreateWindowEx' the CREATESTRUCT is made a parameter with the
following code :

 	/* note: the following assignment may have to change
	 * if the WINAPI decl changes from cdecl
	 */
	lpcs = (LPCREATESTRUCT)&dwExStyle;    <<<<<<<<<<<
	if(SendMessage(wp, WM_CREATE, 0, (LPARAM)(LPSTR)lpcs) == -1) {
		WndDestroyWindow(wp, FALSE);
		return NULL;
	}

Should this be :

 	/* note: the following assignment may have to change
	 * if the WINAPI decl changes from cdecl
	 */
	lpcs = (LPCREATESTRUCT) dwExStyle;  
	if(SendMessage(wp, WM_CREATE, 0, (LPARAM)(LPSTR)lpcs) == -1) {
		WndDestroyWindow(wp, FALSE);
		return NULL;
	}



--
 Chris Johns, ####@####.####

Previous by date: 18 Jan 2000 04:32:11 -0000 Re: Length of Window extra bytes., Chris Johns
Next by date: 18 Jan 2000 04:32:11 -0000 Re: Length of Window extra bytes., Greg Haerr
Previous in thread:
Next in thread: 18 Jan 2000 04:32:11 -0000 Re: Using create structures., Greg Haerr


Powered by ezmlm-browse 0.20.