|
From: veenurs <ve...@ma...> - 2003-01-27 18:13:25
|
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
>
>
>
|