Jump to content

How to programmatically fight with WPS:Desktop background: Difference between revisions

From EDM2
Created page with "''Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?'' ..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<center><noinclude><< [[How to programmatically fight with WPS:Start a VIO window with a changed font size|Start a VIO window with a changed font size]] -- [[How to programmatically fight with WPS|Index]] -- [[How to programmatically fight with WPS:Properties of the root directory|Properties of the root directory]] >></noinclude></center>
''Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?''
''Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?''


Line 6: Line 9:
     "BACKGROUND=c:\somewhere\something.bmp,T,1,I;");
     "BACKGROUND=c:\somewhere\something.bmp,T,1,I;");


[[Category:SOM Articles]]
 
<center><noinclude><< [[How to programmatically fight with WPS:Start a VIO window with a changed font size|Start a VIO window with a changed font size]] -- [[How to programmatically fight with WPS|Index]] -- [[How to programmatically fight with WPS:Properties of the root directory|Properties of the root directory]] >></noinclude></center>
 
[[Category:How to programmatically fight with WPS]]

Latest revision as of 13:43, 12 November 2016

<< Start a VIO window with a changed font size -- Index -- Properties of the root directory >>


Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?

Yes, you do use WinSetObjectData(). You can find the relevant setup string in the WPS Programming Reference. e.g.

 WinSetObjectData(WinQueryObject("<WP_DESKTOP>"),
   "BACKGROUND=c:\somewhere\something.bmp,T,1,I;");


<< Start a VIO window with a changed font size -- Index -- Properties of the root directory >>