|
From: Abhijit S. <mu...@gm...> - 2003-01-01 22:27:51
|
Greets, DreamJunky.
> void layout(HWND hParent, HWND hFldURL, HWND hFldPath, HWND hBtnGo) {
> LPRECT prWindow; //window's rectangle
> int iWidth; //width of window
>
> /* The rules for the control layout:
> * URL and Path fields are stacked, spanning the
> * window, with the 'Go' button below, fixed width
> */
>
> lerror((long)hParent);
> // GetClientRect(hParent, prWindow);
> iWidth = 500;
>
> // SetWindowPos(hFldURL, NULL, 10, 10, (10+iWidth), 25, SWP_NOACTIVATE |
SWP_NOZORDER);
> // SetWindowPos(hFldPath, NULL, 10, 45, (10+iWidth), 25, SWP_NOACTIVATE |
SWP_NOZORDER);
> // SetWindowPos(hBtnGo, NULL, 10, 90, (10+iWidth), 25, SWP_NOACTIVATE |
SWP_NOZORDER);
> }
My guess:
The problem is not with the hWnd. It's with the LPRECT. It's a pointer
pointing to an unknown location. Try changing it to a RECT and then pass
&rect to GetClientRect().
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|