|
From: veenurs <ve...@ma...> - 2003-01-28 08:53:01
|
Hi Santiago,
Yeah , it should be like that , of course .
Thanks for pointing that out. I've been using that prog for some time
.I think the reason it worked for me was that I wasn't doing anymore
allocation after that line , and the line was near the end of code .So
there was more headspace available for the bigger struct .
Thanks again ,
Regards,
Rahul .
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>-----Original Message-----
>From: veenurs [mailto:ve...@ma...]
>Sent: lunes, 27 de enero de 2003 19:12
>To: Neszt Tibor
>Cc: dev...@li...
>Subject: Re: [Dev-C++] win desktop x,y size
>
>
>
>It's like this :
>
> HWND hwnDesk=GetDesktopWindow( );
> LPRECT lpDeskRect =(LPRECT) malloc(sizeof(LPRECT) );
> BOOL bDeskDim= GetWindowRect(
> hwnDesk, // handle to window
> lpDeskRect // address of structure for window coordinates
>);
>
> if(!bDeskDim )
>MessageBox(NULL, "Could Not Get Desktop Dimensions!", "Error!",
>MB_ICONEXCLAMATION | MB_OK);
>
>else {
>
> LONG lright =lpDeskRect->right ;
> LONG lbottom =lpDeskRect->bottom ;
>
>Hope it helps .
>-rahul .
>
>
>Neszt Tibor wrote:
>
>Hello!
>
>Could anyone tell me a simply mode to get the size of the windows desktop?
>
>All help is welcome!
>
>Regards,
>
>Neszt Tibor
>
>
>
>-------------------------------------------------------
>This SF.NET email is sponsored by:
>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
>http://www.vasoftware.com
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
>--------------------------------------------------------------------------------------
>This message and any files transmitted with it are confidential and intended solely
>for the use of the individual or entity to whom they are addressed. No confidentiality
>or privilege is waived or lost by any wrong transmission.
>If you have received this message in error, please immediately destroy it and kindly
>notify the sender by reply email.
>You must not, directly or indirectly, use, disclose, distribute, print, or copy any
>part of this message if you are not the intended recipient. Opinions, conclusions and
>other information in this message that do not relate to the official business of
>Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it.
>--------------------------------------------------------------------------------------
>
>
>-------------------------------------------------------
>This SF.NET email is sponsored by:
>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
>http://www.vasoftware.com
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|