|
From: Santiago P. C. <San...@yd...> - 2003-01-27 18:46:17
|
Hi,
Shouldn't this line:
LPRECT lpDeskRect =(LPRECT) malloc( sizeof(LPRECT) );
^^^^^^
be changed to something like this:
LPRECT lpDeskRect =(LPRECT) malloc( sizeof(RECT) );
Regards,
~Santy
-----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.
--------------------------------------------------------------------------------------
|